From 5f5b3feea55422ef64004841cc41e8e2518dea4f Mon Sep 17 00:00:00 2001 From: Alireza <58640233+SudoACoder@users.noreply.github.com> Date: Fri, 20 Dec 2024 09:26:51 +0330 Subject: [PATCH] Fix: Replace inconsistent logging.error with _LOGGER.error (#262) --- custom_components/xiaomi_home/notify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/xiaomi_home/notify.py b/custom_components/xiaomi_home/notify.py index 42d0d17..f0b46ac 100644 --- a/custom_components/xiaomi_home/notify.py +++ b/custom_components/xiaomi_home/notify.py @@ -119,7 +119,7 @@ class Notify(MIoTActionEntity, NotifyEntity): 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,