From f88b965a75ca69081afe6579599bc3e1eb65ae84 Mon Sep 17 00:00:00 2001 From: yohan <783b8c87@scimetis.net> Date: Wed, 5 Jun 2024 07:26:50 +0200 Subject: [PATCH] Add debug. --- thermostat.py | 1 + 1 file changed, 1 insertion(+) diff --git a/thermostat.py b/thermostat.py index 1173881..996ba6a 100644 --- a/thermostat.py +++ b/thermostat.py @@ -283,6 +283,7 @@ def thermostat_loop(): db.session.rollback() logging.debug("Update mode in DB") cur_mode = db.session.execute(db.select(Set_mode).filter_by(name="mode")).scalar_one() + logging.debug("Current mode: "+str(cur_mode)) cur_mode = data db.session.commit() except Exception as e: