Explorar o código

Resolve warnings of logger library

Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
Emmanuel Ferdman hai 1 ano
pai
achega
bcebf765f3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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(