From 8c4ff35c6d28ab6edc328cb9b3b6f7f9fc8d49f6 Mon Sep 17 00:00:00 2001 From: Sebastian Muszynski Date: Tue, 13 Aug 2024 19:55:59 +0200 Subject: [PATCH 1/2] Use async_add_executor_job instead of async_add_job --- .../xiaomi_miio_airconditioningcompanion/climate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) From eccb5c9e981d56a61bd6d690195ae0eed02ec0f6 Mon Sep 17 00:00:00 2001 From: Sebastian Muszynski Date: Tue, 13 Aug 2024 19:56:41 +0200 Subject: [PATCH 2/2] Bump component version --- .../xiaomi_miio_airconditioningcompanion/manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" }