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

@@ -142,7 +142,7 @@ class XiaomiAirQualityMonitor(Entity):
from miio import DeviceException
try:
state = await self.hass.async_add_job(self._device.status)
state = await self.hass.async_add_executor_job(self._device.status)
_LOGGER.debug("Got new state: %s", state)
self._available = True