소스 검색

Fixed return types for new methods.

Co-authored-by: J. Nick Koston <nick@koston.org>
dcmeglio 1 년 전
부모
커밋
07093e6fab
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      switchbot/devices/curtain.py

+ 2 - 2
switchbot/devices/curtain.py

@@ -248,10 +248,10 @@ class SwitchbotCurtain(SwitchbotDevice):
         # To get actual light level call update() first.
         return self._get_adv_value("calibration")
 
-    def is_opening(self) -> Any:
+    def is_opening(self) -> bool:
         """Return True if the curtain is opening."""
         return self._is_opening
     
-    def is_closing(self) -> Any:
+    def is_closing(self) -> bool:
         """Return True if the curtain is closing."""
         return self._is_closing