Explorar el Código

explicit return

Daniel Høyer Iversen hace 4 años
padre
commit
fd827f286f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      switchbot/__init__.py

+ 1 - 1
switchbot/__init__.py

@@ -74,7 +74,7 @@ class Switchbot:
         finally:
             self._disconnect()
         if send_success:
-            return send_success
+            return True
         if retry < 1:
             _LOGGER.error("Switchbot communication failed. Stopping trying.", exc_info=True)
             return False