Browse Source

missing await

J. Nick Koston 2 years ago
parent
commit
5f4d0d2573
1 changed files with 1 additions and 1 deletions
  1. 1 1
      switchbot/devices/device.py

+ 1 - 1
switchbot/devices/device.py

@@ -224,7 +224,7 @@ class SwitchbotDevice:
         """Send command to device and read response."""
         await self._ensure_connected()
         try:
-            return self._execute_command_locked(key, command)
+            return await self._execute_command_locked(key, command)
         except BleakError:
             # Disconnect so we can reset state and try again
             _LOGGER.debug(