瀏覽代碼

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.
         # To get actual light level call update() first.
         return self._get_adv_value("calibration")
         return self._get_adv_value("calibration")
 
 
-    def is_opening(self) -> Any:
+    def is_opening(self) -> bool:
         """Return True if the curtain is opening."""
         """Return True if the curtain is opening."""
         return self._is_opening
         return self._is_opening
     
     
-    def is_closing(self) -> Any:
+    def is_closing(self) -> bool:
         """Return True if the curtain is closing."""
         """Return True if the curtain is closing."""
         return self._is_closing
         return self._is_closing