Home Information - Your home, your data, organized.
Python
Fixed bug in security manager.
Anthony Cassandraddac4138e84e
diff --git a/src/hi/apps/security/security_manager.py b/src/hi/apps/security/security_manager.pyindex 72108bee..6e1eea8a 100644--- a/src/hi/apps/security/security_manager.py+++ b/src/hi/apps/security/security_manager.py@@ -290,6 +290,10 @@ class SecurityManager( Singleton, SettingsMixin ):night_start_time_of_day_str = settings_manager.get_setting_value(SecuritySetting.SECURITY_NIGHT_START,)++ # TODO: DO some more sanity checking of these setting values. Here and when saving.+ if not day_start_time_of_day_str or not night_start_time_of_day_str:+ returncurrent_datetime = datetimeproxy.now()start_of_day_datetime = current_datetime.replace( hour=0, minute=0, second=0, microsecond=0 )diff --git a/src/hi/requirements/development.txt b/src/hi/requirements/development.txtindex 93d17b28..eeea9c1d 100644--- a/src/hi/requirements/development.txt+++ b/src/hi/requirements/development.txt@@ -4,5 +4,6 @@ autopep8==2.3.1black==24.8.0flake8==7.1.1jedi==0.19.1+pipdeptree==2.25.0rope==1.13.0yapf==0.40.2