Przeglądaj źródła

Resolve warnings of logger library

Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
Emmanuel Ferdman 9 miesięcy temu
rodzic
commit
bcebf765f3
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      custom_components/tuya_local/cloud.py

+ 1 - 1
custom_components/tuya_local/cloud.py

@@ -87,7 +87,7 @@ class Cloud:
     async def async_login(self) -> bool:
         """Login to the Tuya cloud."""
         if not self.__user_code or not self.__qr_code:
-            _LOGGER.warn("Login attempted without successful QR scan")
+            _LOGGER.warning("Login attempted without successful QR scan")
             return False, {}
 
         success, info = await self.__hass.async_add_executor_job(