Update aiohomekit to 2.3.0 (#82164)
This commit is contained in:
parent
361bd6bb81
commit
248b93f112
4 changed files with 4 additions and 24 deletions
|
@ -721,27 +721,7 @@ class HKDevice:
|
||||||
self, characteristics: Iterable[tuple[int, int, Any]]
|
self, characteristics: Iterable[tuple[int, int, Any]]
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Control a HomeKit device state from Home Assistant."""
|
"""Control a HomeKit device state from Home Assistant."""
|
||||||
results = await self.pairing.put_characteristics(characteristics)
|
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)
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def unique_id(self) -> str:
|
def unique_id(self) -> str:
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
"name": "HomeKit Controller",
|
"name": "HomeKit Controller",
|
||||||
"config_flow": true,
|
"config_flow": true,
|
||||||
"documentation": "https://www.home-assistant.io/integrations/homekit_controller",
|
"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."],
|
"zeroconf": ["_hap._tcp.local.", "_hap._udp.local."],
|
||||||
"bluetooth": [{ "manufacturer_id": 76, "manufacturer_data_start": [6] }],
|
"bluetooth": [{ "manufacturer_id": 76, "manufacturer_data_start": [6] }],
|
||||||
"dependencies": ["bluetooth", "zeroconf"],
|
"dependencies": ["bluetooth", "zeroconf"],
|
||||||
|
|
|
@ -174,7 +174,7 @@ aioguardian==2022.07.0
|
||||||
aioharmony==0.2.9
|
aioharmony==0.2.9
|
||||||
|
|
||||||
# homeassistant.components.homekit_controller
|
# homeassistant.components.homekit_controller
|
||||||
aiohomekit==2.2.19
|
aiohomekit==2.3.0
|
||||||
|
|
||||||
# homeassistant.components.emulated_hue
|
# homeassistant.components.emulated_hue
|
||||||
# homeassistant.components.http
|
# homeassistant.components.http
|
||||||
|
|
|
@ -158,7 +158,7 @@ aioguardian==2022.07.0
|
||||||
aioharmony==0.2.9
|
aioharmony==0.2.9
|
||||||
|
|
||||||
# homeassistant.components.homekit_controller
|
# homeassistant.components.homekit_controller
|
||||||
aiohomekit==2.2.19
|
aiohomekit==2.3.0
|
||||||
|
|
||||||
# homeassistant.components.emulated_hue
|
# homeassistant.components.emulated_hue
|
||||||
# homeassistant.components.http
|
# homeassistant.components.http
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue