From 248b93f112e0734af1375fcfa442431ee765f6fd Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Tue, 15 Nov 2022 20:38:31 -0600 Subject: [PATCH] Update aiohomekit to 2.3.0 (#82164) --- .../homekit_controller/connection.py | 22 +------------------ .../homekit_controller/manifest.json | 2 +- requirements_all.txt | 2 +- requirements_test_all.txt | 2 +- 4 files changed, 4 insertions(+), 24 deletions(-) diff --git a/homeassistant/components/homekit_controller/connection.py b/homeassistant/components/homekit_controller/connection.py index f158cd49e9c..dbcd8b28fc2 100644 --- a/homeassistant/components/homekit_controller/connection.py +++ b/homeassistant/components/homekit_controller/connection.py @@ -721,27 +721,7 @@ class HKDevice: self, characteristics: Iterable[tuple[int, int, Any]] ) -> None: """Control a HomeKit device state from Home Assistant.""" - results = await self.pairing.put_characteristics(characteristics) - - # Feed characteristics back into HA and update the current state - # results will only contain failures, so anythin in characteristics - # but not in results was applied successfully - we can just have HA - # reflect the change immediately. - - new_entity_state = {} - for aid, iid, value in characteristics: - key = (aid, iid) - - # If the key was returned by put_characteristics() then the - # change didn't work - if key in results: - continue - - # Otherwise it was accepted and we can apply the change to - # our state - new_entity_state[key] = {"value": value} - - self.process_new_events(new_entity_state) + await self.pairing.put_characteristics(characteristics) @property def unique_id(self) -> str: diff --git a/homeassistant/components/homekit_controller/manifest.json b/homeassistant/components/homekit_controller/manifest.json index f0438a7b841..864ec1e9bd0 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==2.2.19"], + "requirements": ["aiohomekit==2.3.0"], "zeroconf": ["_hap._tcp.local.", "_hap._udp.local."], "bluetooth": [{ "manufacturer_id": 76, "manufacturer_data_start": [6] }], "dependencies": ["bluetooth", "zeroconf"], diff --git a/requirements_all.txt b/requirements_all.txt index 75181ecaf4e..38a8c4bc40a 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -174,7 +174,7 @@ aioguardian==2022.07.0 aioharmony==0.2.9 # homeassistant.components.homekit_controller -aiohomekit==2.2.19 +aiohomekit==2.3.0 # homeassistant.components.emulated_hue # homeassistant.components.http diff --git a/requirements_test_all.txt b/requirements_test_all.txt index 70ed2b28bc5..3893f747920 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -158,7 +158,7 @@ aioguardian==2022.07.0 aioharmony==0.2.9 # homeassistant.components.homekit_controller -aiohomekit==2.2.19 +aiohomekit==2.3.0 # homeassistant.components.emulated_hue # homeassistant.components.http