Add debug.
This commit is contained in:
parent
1ef4ada723
commit
f88b965a75
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user