浏览代码

missing await

J. Nick Koston 2 年之前
父节点
当前提交
55b1cbab3a
共有 1 个文件被更改,包括 1 次插入0 次删除
  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."""