Skip to content

Commit

Permalink
Fix: Replace inconsistent logging.error with _LOGGER.error (#262)
Browse files Browse the repository at this point in the history
  • Loading branch information
SudoACoder authored Dec 20, 2024
1 parent 571483b commit 5f5b3fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/xiaomi_home/notify.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ async def async_send_message(
in_value: list[dict] = []
for index, prop in enumerate(self.spec.in_):
if type(in_list[index]).__name__ != prop.format_:
logging.error(
_LOGGER.error(
'action exec failed, %s(%s), invalid params item, '
'which item(%s) in the list must be %s, %s',
self.name, self.entity_id, prop.description_trans,
Expand Down

0 comments on commit 5f5b3fe

Please sign in to comment.