log some info

This commit is contained in:
Franzi 2024-01-09 11:16:14 +01:00
parent 9a77bd7ed1
commit 4819e5e80a
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -30,6 +30,9 @@ while True:
try:
if status["state"]["open"]:
last_open = datetime.now(utc)
log.info('afra is open')
else:
log.info('afra is closed')
except KeyError:
log.exception("open status was not in state json")