Selaa lähdekoodia

missing await

J. Nick Koston 2 vuotta sitten
vanhempi
commit
55b1cbab3a
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  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."""