mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Bump aiohomekit (#36041)
This commit is contained in:
parent
99e345d6e4
commit
6e3bba07da
@ -89,10 +89,6 @@ class HKDevice:
|
|||||||
# mapped to a HA entity.
|
# mapped to a HA entity.
|
||||||
self.entities = []
|
self.entities = []
|
||||||
|
|
||||||
# There are multiple entities sharing a single connection - only
|
|
||||||
# allow one entity to use pairing at once.
|
|
||||||
self.pairing_lock = asyncio.Lock()
|
|
||||||
|
|
||||||
self.available = True
|
self.available = True
|
||||||
|
|
||||||
self.signal_state_updated = "_".join((DOMAIN, self.unique_id, "state_updated"))
|
self.signal_state_updated = "_".join((DOMAIN, self.unique_id, "state_updated"))
|
||||||
@ -333,13 +329,11 @@ class HKDevice:
|
|||||||
|
|
||||||
async def get_characteristics(self, *args, **kwargs):
|
async def get_characteristics(self, *args, **kwargs):
|
||||||
"""Read latest state from homekit accessory."""
|
"""Read latest state from homekit accessory."""
|
||||||
async with self.pairing_lock:
|
return await self.pairing.get_characteristics(*args, **kwargs)
|
||||||
return await self.pairing.get_characteristics(*args, **kwargs)
|
|
||||||
|
|
||||||
async def put_characteristics(self, characteristics):
|
async def put_characteristics(self, characteristics):
|
||||||
"""Control a HomeKit device state from Home Assistant."""
|
"""Control a HomeKit device state from Home Assistant."""
|
||||||
async with self.pairing_lock:
|
results = await self.pairing.put_characteristics(characteristics)
|
||||||
results = await self.pairing.put_characteristics(characteristics)
|
|
||||||
|
|
||||||
# Feed characteristics back into HA and update the current state
|
# Feed characteristics back into HA and update the current state
|
||||||
# results will only contain failures, so anythin in characteristics
|
# results will only contain failures, so anythin in characteristics
|
||||||
|
@ -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[IP]==0.2.37"],
|
"requirements": ["aiohomekit[IP]==0.2.38"],
|
||||||
"zeroconf": ["_hap._tcp.local."],
|
"zeroconf": ["_hap._tcp.local."],
|
||||||
"codeowners": ["@Jc2k"]
|
"codeowners": ["@Jc2k"]
|
||||||
}
|
}
|
||||||
|
@ -175,7 +175,7 @@ aioftp==0.12.0
|
|||||||
aioharmony==0.1.13
|
aioharmony==0.1.13
|
||||||
|
|
||||||
# homeassistant.components.homekit_controller
|
# homeassistant.components.homekit_controller
|
||||||
aiohomekit[IP]==0.2.37
|
aiohomekit[IP]==0.2.38
|
||||||
|
|
||||||
# homeassistant.components.emulated_hue
|
# homeassistant.components.emulated_hue
|
||||||
# homeassistant.components.http
|
# homeassistant.components.http
|
||||||
|
@ -82,7 +82,7 @@ aiofreepybox==0.0.8
|
|||||||
aioharmony==0.1.13
|
aioharmony==0.1.13
|
||||||
|
|
||||||
# homeassistant.components.homekit_controller
|
# homeassistant.components.homekit_controller
|
||||||
aiohomekit[IP]==0.2.37
|
aiohomekit[IP]==0.2.38
|
||||||
|
|
||||||
# homeassistant.components.emulated_hue
|
# homeassistant.components.emulated_hue
|
||||||
# homeassistant.components.http
|
# homeassistant.components.http
|
||||||
|
Loading…
x
Reference in New Issue
Block a user