Skip to content

Commit

Permalink
Merge pull request #518 from xenjke/log-level-decrease-online-events
Browse files Browse the repository at this point in the history
chore: Update logging level for device online events
  • Loading branch information
albertogeniola authored Nov 12, 2024
2 parents 812f589 + 1eb8877 commit 62b24c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/meross_cloud/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,12 +290,12 @@ async def _async_push_notification_received(self, namespace: Namespace, data: di
_LOGGER.warning(f"Received unbind event. Removing device %s from HA", self.name)
await self.platform.async_remove_entity(self.entity_id)
elif namespace == Namespace.SYSTEM_ONLINE:
_LOGGER.warning(f"Device %s reported online event.", self.name)
_LOGGER.info(f"Device %s reported online event.", self.name)
online = OnlineStatus(int(data.get('online').get('status')))
update_state = True
full_update = online == OnlineStatus.ONLINE
elif namespace == Namespace.HUB_ONLINE:
_LOGGER.warning(f"Device {self.name} reported (HUB) online event.")
_LOGGER.info(f"Device {self.name} reported (HUB) online event.")
online = OnlineStatus(int(data.get('status')))
update_state = True
full_update = online == OnlineStatus.ONLINE
Expand Down

0 comments on commit 62b24c7

Please sign in to comment.