Pārlūkot izejas kodu

Resolve warnings of logger library

Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
Emmanuel Ferdman 1 gadu atpakaļ
vecāks
revīzija
bcebf765f3
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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:
     async def async_login(self) -> bool:
         """Login to the Tuya cloud."""
         """Login to the Tuya cloud."""
         if not self.__user_code or not self.__qr_code:
         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, {}
             return False, {}
 
 
         success, info = await self.__hass.async_add_executor_job(
         success, info = await self.__hass.async_add_executor_job(