Explorar o código

return correct value from switchbot

Daniel Høyer Iversen %!s(int64=5) %!d(string=hai) anos
pai
achega
51b43c2522
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      switchbot/__init__.py

+ 1 - 1
switchbot/__init__.py

@@ -31,7 +31,7 @@ class Switchbot:
             _LOGGER.error("Cannot connect to switchbot.", exc_info=True)
             if retry < 1:
                 return False
-            self._sendpacket(key, retry-1)
+            return self._sendpacket(key, retry-1)
         return True
 
     def turn_on(self) -> None: