瀏覽代碼

explicit return

Daniel Høyer Iversen 4 年之前
父節點
當前提交
fd827f286f
共有 1 個文件被更改,包括 1 次插入1 次删除
  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