mirror of
https://github.com/XiaoMi/ha_xiaomi_home.git
synced 2025-04-23 01:52:45 +08:00
Fix: Replace inconsistent logging.error with _LOGGER.error (#262)
This commit is contained in:
parent
571483b302
commit
5f5b3feea5
@ -119,7 +119,7 @@ class Notify(MIoTActionEntity, NotifyEntity):
|
|||||||
in_value: list[dict] = []
|
in_value: list[dict] = []
|
||||||
for index, prop in enumerate(self.spec.in_):
|
for index, prop in enumerate(self.spec.in_):
|
||||||
if type(in_list[index]).__name__ != prop.format_:
|
if type(in_list[index]).__name__ != prop.format_:
|
||||||
logging.error(
|
_LOGGER.error(
|
||||||
'action exec failed, %s(%s), invalid params item, '
|
'action exec failed, %s(%s), invalid params item, '
|
||||||
'which item(%s) in the list must be %s, %s',
|
'which item(%s) in the list must be %s, %s',
|
||||||
self.name, self.entity_id, prop.description_trans,
|
self.name, self.entity_id, prop.description_trans,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user