diff --git a/homeassistant/components/homekit_controller/connection.py b/homeassistant/components/homekit_controller/connection.py index 605253e6235..d910de34321 100644 --- a/homeassistant/components/homekit_controller/connection.py +++ b/homeassistant/components/homekit_controller/connection.py @@ -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,13 +329,11 @@ 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) + 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) + 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 diff --git a/homeassistant/components/homekit_controller/manifest.json b/homeassistant/components/homekit_controller/manifest.json index 07736f61c8e..961dd380ac1 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[IP]==0.2.37"], + "requirements": ["aiohomekit[IP]==0.2.38"], "zeroconf": ["_hap._tcp.local."], "codeowners": ["@Jc2k"] } diff --git a/requirements_all.txt b/requirements_all.txt index 3944338e913..6d783de4b9d 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -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 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index fc25c794562..38ec9efb4b0 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -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