From 326d5d63961bd147bffdaaff76d24cbb74a5fcfb Mon Sep 17 00:00:00 2001 From: Sebastian Muszynski Date: Thu, 2 Jun 2022 07:46:13 +0200 Subject: [PATCH 1/3] Remove iot class --- hacs.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hacs.json b/hacs.json index 12458fd..76d5e6b 100644 --- a/hacs.json +++ b/hacs.json @@ -1,6 +1,5 @@ { "name": "Xiaomi Mi and Aqara Air Conditioning Companion Integration", "content_in_root": false, - "render_readme": true, - "iot_class": "local_polling" + "render_readme": true } From f14753277e51bd0fa2d74cf981b841d9c4c5da91 Mon Sep 17 00:00:00 2001 From: Jin Date: Sat, 27 Aug 2022 14:07:10 +0800 Subject: [PATCH 2/3] Don't pass hass.loop to asyncio calls anymore (Closes: #153) #156 --- .../xiaomi_miio_airconditioningcompanion/climate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/xiaomi_miio_airconditioningcompanion/climate.py b/custom_components/xiaomi_miio_airconditioningcompanion/climate.py index 76f9f5c..85599d9 100644 --- a/custom_components/xiaomi_miio_airconditioningcompanion/climate.py +++ b/custom_components/xiaomi_miio_airconditioningcompanion/climate.py @@ -196,7 +196,7 @@ async def async_service_handler(service): update_tasks.append(device.async_update_ha_state(True)) if update_tasks: - await asyncio.wait(update_tasks, loop=hass.loop) + await asyncio.wait(update_tasks) for service in SERVICE_TO_METHOD: schema = SERVICE_TO_METHOD[service].get("schema", SERVICE_SCHEMA) @@ -574,7 +574,7 @@ def async_learn_command(self, slot, timeout): yield from self.hass.async_add_job(self._device.learn_stop, slot) return - yield from asyncio.sleep(1, loop=self.hass.loop) + yield from asyncio.sleep(1) yield from self.hass.async_add_job(self._device.learn_stop, slot) _LOGGER.error("Timeout. No infrared command captured") From 5b5f2122d03ff3e16ee5b32def7ab4f460af8637 Mon Sep 17 00:00:00 2001 From: Sebastian Muszynski Date: Sat, 27 Aug 2022 08:08:25 +0200 Subject: [PATCH 3/3] Bump python-miio and custom component version --- .../xiaomi_miio_airconditioningcompanion/manifest.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/xiaomi_miio_airconditioningcompanion/manifest.json b/custom_components/xiaomi_miio_airconditioningcompanion/manifest.json index 77119de..936105a 100644 --- a/custom_components/xiaomi_miio_airconditioningcompanion/manifest.json +++ b/custom_components/xiaomi_miio_airconditioningcompanion/manifest.json @@ -2,13 +2,13 @@ "domain": "xiaomi_miio_airconditioningcompanion", "name": "Xiaomi Mi and Aqara Air Conditioning Companion", "config_flow": false, - "version": "2022.4.6.1", + "version": "2022.8.0.0", "iot_class": "local_polling", "documentation": "https://github.com/syssi/xiaomi_airconditioningcompanion", "issue_tracker": "https://github.com/syssi/xiaomi_airconditioningcompanion/issues", "requirements": [ "construct==2.10.56", - "python-miio>=0.5.11" + "python-miio>=0.5.12" ], "dependencies": ["sensor"], "codeowners": [