Skip to content

Commit

Permalink
✍️ improve for logger
Browse files Browse the repository at this point in the history
  • Loading branch information
al-one committed Feb 11, 2025
1 parent ebec501 commit 2d8a6e9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion custom_components/xiaomi_miot/core/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -884,10 +884,12 @@ async def update_miot_status(
log = self.log.error
if auto_cloud:
use_cloud = self.cloud
log = self.log.warning if self._local_state else self.log.info
log = self.log.warning
else:
self.miot_results.errors = exc
self.available = False
if self._local_state is False:
log = self.log.info
self._local_state = False
props_count = len(mapping)
log(
Expand Down

1 comment on commit 2d8a6e9

@al-one
Copy link
Owner Author

@al-one al-one commented on 2d8a6e9 Feb 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.