Add debug.

This commit is contained in:
yohan 2024-06-05 07:37:08 +02:00
parent f88b965a75
commit 49dc3fa220

View File

@ -283,7 +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))
logging.debug("Current mode: "+str(cur_mode.value))
cur_mode = data
db.session.commit()
except Exception as e: