J. Nick Koston 2 년 전
부모
커밋
28acab7391
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      switchbot/devices/device.py

+ 3 - 3
switchbot/devices/device.py

@@ -158,9 +158,9 @@ class SwitchbotDevice:
         """Reset disconnect timer."""
         if self._disconnect_timer:
             self._disconnect_timer.cancel()
-            self._disconnect_timer = self.loop.call_later(
-                DISCONNECT_DELAY, self._disconnect
-            )
+        self._disconnect_timer = self.loop.call_later(
+            DISCONNECT_DELAY, self._disconnect
+        )
 
     def _disconnect(self):
         """Disconnect from device."""