Bump aiohomekit (#36041)

This commit is contained in:
Jc2k 2020-05-23 18:59:32 +01:00 committed by GitHub
parent 99e345d6e4
commit 6e3bba07da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 11 deletions

View file

@ -89,10 +89,6 @@ class HKDevice:
# mapped to a HA entity.
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.signal_state_updated = "_".join((DOMAIN, self.unique_id, "state_updated"))
@ -333,12 +329,10 @@ class HKDevice:
async def get_characteristics(self, *args, **kwargs):
"""Read latest state from homekit accessory."""
async with self.pairing_lock:
return await self.pairing.get_characteristics(*args, **kwargs)
async def put_characteristics(self, characteristics):
"""Control a HomeKit device state from Home Assistant."""
async with self.pairing_lock:
results = await self.pairing.put_characteristics(characteristics)
# Feed characteristics back into HA and update the current state

View file

@ -3,7 +3,7 @@
"name": "HomeKit Controller",
"config_flow": true,
"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."],
"codeowners": ["@Jc2k"]
}

View file

@ -175,7 +175,7 @@ aioftp==0.12.0
aioharmony==0.1.13
# homeassistant.components.homekit_controller
aiohomekit[IP]==0.2.37
aiohomekit[IP]==0.2.38
# homeassistant.components.emulated_hue
# homeassistant.components.http

View file

@ -82,7 +82,7 @@ aiofreepybox==0.0.8
aioharmony==0.1.13
# homeassistant.components.homekit_controller
aiohomekit[IP]==0.2.37
aiohomekit[IP]==0.2.38
# homeassistant.components.emulated_hue
# homeassistant.components.http