Add debug.

This commit is contained in:
yohan 2024-06-05 07:26:50 +02:00
parent 1ef4ada723
commit f88b965a75

View File

@ -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: