diff --git a/custom_components/xiaomi_miio_airconditioningcompanion/climate.py b/custom_components/xiaomi_miio_airconditioningcompanion/climate.py index c69914d..4ce5f6d 100644 --- a/custom_components/xiaomi_miio_airconditioningcompanion/climate.py +++ b/custom_components/xiaomi_miio_airconditioningcompanion/climate.py @@ -315,7 +315,7 @@ async def _try_command(self, mask_error, func, *args, **kwargs): from miio import DeviceException try: - result = await self.hass.async_add_job(partial(func, *args, **kwargs)) + result = await self.hass.async_add_executor_job(partial(func, *args, **kwargs)) _LOGGER.debug("Response received: %s", result) diff --git a/custom_components/xiaomi_miio_airconditioningcompanion/manifest.json b/custom_components/xiaomi_miio_airconditioningcompanion/manifest.json index ffec4fb..da85b0b 100644 --- a/custom_components/xiaomi_miio_airconditioningcompanion/manifest.json +++ b/custom_components/xiaomi_miio_airconditioningcompanion/manifest.json @@ -13,5 +13,5 @@ "construct==2.10.68", "python-miio>=0.5.12" ], - "version": "2024.8.1.0" + "version": "2024.8.1.1" }