Improve logging

This commit is contained in:
Edgar P. Burkhart 2024-12-09 16:18:19 +01:00
parent 483d377b6d
commit 3aaaad6fcf
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227
2 changed files with 4 additions and 1 deletions

View file

@ -1,5 +1,5 @@
[logging]
# level = "DEBUG"
level = "INFO"
[homeassistant]
entity = "climate.chaudiere"

View file

@ -104,6 +104,7 @@ class HAClient:
logger.error("Availability message timed out")
return 1
logger.info("Connected to Home Assistant.")
return 0
def publish(
@ -143,6 +144,8 @@ class HAClient:
if code != 0:
logger.error("MQTT client loop failed with code <{code}>.")
else:
logger.info("MQTT client loop successfully exited")
return code
def state_update(