소스 검색

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