Browse Source

missing await

J. Nick Koston 2 năm trước cách đây
mục cha
commit
55b1cbab3a
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      switchbot/devices/device.py

+ 1 - 0
switchbot/devices/device.py

@@ -208,6 +208,7 @@ class SwitchbotDevice:
             self.name,
             DISCONNECT_DELAY,
         )
+        await self._execute_disconnect()
 
     async def _execute_disconnect(self):
         """Execute disconnection."""