Skip to content

Commit

Permalink
✍️ improve for logger (#2286)
Browse files Browse the repository at this point in the history
  • Loading branch information
al-one committed Jan 7, 2025
1 parent fd9c269 commit b4f3eb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/xiaomi_miot/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ async def fetch_latest_message(self):
messages = [self.trim_message(msg) for msg in (res.get('result') or {}).get('history') or []]
if not messages:
if not self._has_none_message:
_LOGGER.warning('Get xiaomi scene history for %s %d failed: %s', self.cloud.user_id, self.home_id, res)
_LOGGER.info('Get xiaomi scene history for %s %d failed: %s', self.cloud.user_id, self.home_id, res)

self._has_none_message = True
return {}
Expand Down

0 comments on commit b4f3eb2

Please sign in to comment.