浏览代码

missing await

J. Nick Koston 2 年之前
父节点
当前提交
5f4d0d2573
共有 1 个文件被更改,包括 1 次插入1 次删除
  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."""
         """Send command to device and read response."""
         await self._ensure_connected()
         await self._ensure_connected()
         try:
         try:
-            return self._execute_command_locked(key, command)
+            return await self._execute_command_locked(key, command)
         except BleakError:
         except BleakError:
             # Disconnect so we can reset state and try again
             # Disconnect so we can reset state and try again
             _LOGGER.debug(
             _LOGGER.debug(