From a7bde8034604cda3d7dc2dc0d7b4959b7ed09873 Mon Sep 17 00:00:00 2001 From: yohan <783b8c87@scimetis.net> Date: Sun, 2 Jun 2024 10:58:07 +0200 Subject: [PATCH] Continue Flask migration. --- thermostat.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/thermostat.py b/thermostat.py index 7a5066c..d93e5f2 100644 --- a/thermostat.py +++ b/thermostat.py @@ -221,7 +221,8 @@ while True: current_date = datetime.datetime.now() today_awake_time = current_date.replace(hour=int(awake_hour.split(':')[0]), minute=int(awake_hour.split(':')[1]), second=0, microsecond=0) today_sleep_time = current_date.replace(hour=int(sleep_hour.split(':')[0]), minute=int(sleep_hour.split(':')[1]), second=0, microsecond=0) - forced_mode = get_forced_mode() + #forced_mode = get_forced_mode() + forced_mode = None if forced_mode is not None and forced_mode in targets: if target_name != forced_mode: target_name = forced_mode