From 748523c18f05ad61a0d816b1eaa7026c01854f2f Mon Sep 17 00:00:00 2001 From: topsworld Date: Thu, 26 Dec 2024 20:27:44 +0800 Subject: [PATCH] style: change some miot cloud log level --- custom_components/xiaomi_home/miot/miot_cloud.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/xiaomi_home/miot/miot_cloud.py b/custom_components/xiaomi_home/miot/miot_cloud.py index d5a785c..751defd 100644 --- a/custom_components/xiaomi_home/miot/miot_cloud.py +++ b/custom_components/xiaomi_home/miot/miot_cloud.py @@ -708,7 +708,7 @@ async def __get_prop_handler(self) -> bool: key = f'{result["did"]}.{result["siid"]}.{result["piid"]}' prop_obj = self._get_prop_list.pop(key, None) if prop_obj is None: - _LOGGER.error('get prop error, key not exists, %s', result) + _LOGGER.info('get prop error, key not exists, %s', result) continue prop_obj['fut'].set_result(result['value']) props_req.remove(key) @@ -719,7 +719,7 @@ async def __get_prop_handler(self) -> bool: continue prop_obj['fut'].set_result(None) if props_req: - _LOGGER.error( + _LOGGER.info( 'get prop from cloud failed, %s, %s', len(key), props_req) if self._get_prop_list: