Browse Source

explicit return

Daniel Høyer Iversen 4 năm trước cách đây
mục cha
commit
fd827f286f
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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