Skip to content

Commit

Permalink
Re-added connetion log, set disconnect log to warning level
Browse files Browse the repository at this point in the history
  • Loading branch information
optiluca authored and gicamm committed Nov 5, 2024
1 parent fab0149 commit 84bd805
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom_components/comelit/hub.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,13 @@ def connect_callback(client, userdata, flags, rc):
try:
client.subscribe(client.hub.topic_tx)
client.hub.announce()
_LOGGER.info("connected to hub")
except Exception as e:
_LOGGER.exception(e)


def disconnect_callback(client, userdata, rc):
_LOGGER.info("disconnected from hub")
_LOGGER.warning("disconnected from hub")


# Manage lights, switch and covers
Expand Down

0 comments on commit 84bd805

Please sign in to comment.