From cf0b23c7010d15793ab7cfe9cfc40e98b7327df4 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sun, 23 May 2021 03:42:57 -1000 Subject: [PATCH 1/2] Update aiohomekit to subscribe more like iOS - Subscribes to one aid/iid at a time to mimic iOS - Closes the connection to invalidate the subscriptions instead of unsubs to mimic iOS Fixes #37996 --- homeassistant/components/homekit_controller/connection.py | 2 +- homeassistant/components/homekit_controller/manifest.json | 2 +- requirements_all.txt | 2 +- requirements_test_all.txt | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/homeassistant/components/homekit_controller/connection.py b/homeassistant/components/homekit_controller/connection.py index eaaab3901369df..b8713972334bb6 100644 --- a/homeassistant/components/homekit_controller/connection.py +++ b/homeassistant/components/homekit_controller/connection.py @@ -267,7 +267,7 @@ async def async_unload(self): if self._polling_interval_remover: self._polling_interval_remover() - await self.pairing.unsubscribe(self.watchable_characteristics) + await self.pairing.close() return await self.hass.config_entries.async_unload_platforms( self.config_entry, self.platforms diff --git a/homeassistant/components/homekit_controller/manifest.json b/homeassistant/components/homekit_controller/manifest.json index 1bfa39fab80448..801b6e77a04d0b 100644 --- a/homeassistant/components/homekit_controller/manifest.json +++ b/homeassistant/components/homekit_controller/manifest.json @@ -3,7 +3,7 @@ "name": "HomeKit Controller", "config_flow": true, "documentation": "https://www.home-assistant.io/integrations/homekit_controller", - "requirements": ["aiohomekit==0.2.62"], + "requirements": ["aiohomekit==0.2.63"], "zeroconf": ["_hap._tcp.local."], "after_dependencies": ["zeroconf"], "codeowners": ["@Jc2k", "@bdraco"], diff --git a/requirements_all.txt b/requirements_all.txt index 241e24234edd24..ddb647ba9b5a1b 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -175,7 +175,7 @@ aioguardian==1.0.4 aioharmony==0.2.7 # homeassistant.components.homekit_controller -aiohomekit==0.2.62 +aiohomekit==0.2.63 # homeassistant.components.emulated_hue # homeassistant.components.http diff --git a/requirements_test_all.txt b/requirements_test_all.txt index ddbce293011587..85d008e8879d55 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -112,7 +112,7 @@ aioguardian==1.0.4 aioharmony==0.2.7 # homeassistant.components.homekit_controller -aiohomekit==0.2.62 +aiohomekit==0.2.63 # homeassistant.components.emulated_hue # homeassistant.components.http From f52b151a43ee2e86007c860c75f1c7f581a1b48f Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sun, 23 May 2021 07:41:36 -1000 Subject: [PATCH 2/2] Bump to .64 for test fixture --- homeassistant/components/homekit_controller/manifest.json | 2 +- requirements_all.txt | 2 +- requirements_test_all.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/homekit_controller/manifest.json b/homeassistant/components/homekit_controller/manifest.json index 801b6e77a04d0b..ac12c5dc123a6a 100644 --- a/homeassistant/components/homekit_controller/manifest.json +++ b/homeassistant/components/homekit_controller/manifest.json @@ -3,7 +3,7 @@ "name": "HomeKit Controller", "config_flow": true, "documentation": "https://www.home-assistant.io/integrations/homekit_controller", - "requirements": ["aiohomekit==0.2.63"], + "requirements": ["aiohomekit==0.2.64"], "zeroconf": ["_hap._tcp.local."], "after_dependencies": ["zeroconf"], "codeowners": ["@Jc2k", "@bdraco"], diff --git a/requirements_all.txt b/requirements_all.txt index ddb647ba9b5a1b..c7fc4a48ca49d8 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -175,7 +175,7 @@ aioguardian==1.0.4 aioharmony==0.2.7 # homeassistant.components.homekit_controller -aiohomekit==0.2.63 +aiohomekit==0.2.64 # homeassistant.components.emulated_hue # homeassistant.components.http diff --git a/requirements_test_all.txt b/requirements_test_all.txt index 85d008e8879d55..d9cde744524c28 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -112,7 +112,7 @@ aioguardian==1.0.4 aioharmony==0.2.7 # homeassistant.components.homekit_controller -aiohomekit==0.2.63 +aiohomekit==0.2.64 # homeassistant.components.emulated_hue # homeassistant.components.http