Use async_add_executor_job at the xiaomi_miio platforms (#18294)

This commit is contained in:
Sebastian Muszynski authored and GitHub committed 2018-11-07 09:03:35 +01:00
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: