Use async_add_executor_job at the xiaomi_miio platforms (#18294)
This commit is contained in:
1 parent
35ae85e14e
commit
df3d82e0e3
7 files changed
+29
-24
No files matched your search
@@ -61,7 +61,8 @@ class XiaomiMiioDeviceScanner(DeviceScanner):
|
||||
|
||||
devices = []
|
||||
try:
|
||||
station_info = await self.hass.async_add_job(self.device.status)
|
||||
station_info = \
|
||||
await self.hass.async_add_executor_job(self.device.status)
|
||||
_LOGGER.debug("Got new station info: %s", station_info)
|
||||
|
||||
for device in station_info.associated_stations:
|
||||
|
||||
Reference in new issue
Block a user