Skip to content

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.py
index 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:
+ return
current_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.txt
index 93d17b28..eeea9c1d 100644
--- a/src/hi/requirements/development.txt
+++ b/src/hi/requirements/development.txt
@@ -4,5 +4,6 @@ autopep8==2.3.1
black==24.8.0
flake8==7.1.1
jedi==0.19.1
+pipdeptree==2.25.0
rope==1.13.0
yapf==0.40.2