diff --git a/homeassistant/components/homekit_controller/__init__.py b/homeassistant/components/homekit_controller/__init__.py index 44d8286984c..f7507d09837 100644 --- a/homeassistant/components/homekit_controller/__init__.py +++ b/homeassistant/components/homekit_controller/__init__.py @@ -219,8 +219,10 @@ async def async_setup(hass, config): map_storage = hass.data[ENTITY_MAP] = EntityMapStorage(hass) await map_storage.async_initialize() - zeroconf_instance = await zeroconf.async_get_instance(hass) - hass.data[CONTROLLER] = aiohomekit.Controller(zeroconf_instance=zeroconf_instance) + async_zeroconf_instance = await zeroconf.async_get_async_instance(hass) + hass.data[CONTROLLER] = aiohomekit.Controller( + async_zeroconf_instance=async_zeroconf_instance + ) hass.data[KNOWN_DEVICES] = {} hass.data[TRIGGERS] = {} diff --git a/homeassistant/components/homekit_controller/config_flow.py b/homeassistant/components/homekit_controller/config_flow.py index 6ae66d362c9..ebb14e43378 100644 --- a/homeassistant/components/homekit_controller/config_flow.py +++ b/homeassistant/components/homekit_controller/config_flow.py @@ -99,8 +99,10 @@ class HomekitControllerFlowHandler(config_entries.ConfigFlow, domain=DOMAIN): async def _async_setup_controller(self): """Create the controller.""" - zeroconf_instance = await zeroconf.async_get_instance(self.hass) - self.controller = aiohomekit.Controller(zeroconf_instance=zeroconf_instance) + async_zeroconf_instance = await zeroconf.async_get_async_instance(self.hass) + self.controller = aiohomekit.Controller( + async_zeroconf_instance=async_zeroconf_instance + ) async def async_step_user(self, user_input=None): """Handle a flow start.""" diff --git a/homeassistant/components/homekit_controller/manifest.json b/homeassistant/components/homekit_controller/manifest.json index 7ff32e402fe..155f3a4f5f6 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==0.2.67"], + "requirements": ["aiohomekit==0.4.0"], "zeroconf": ["_hap._tcp.local."], "after_dependencies": ["zeroconf"], "codeowners": ["@Jc2k", "@bdraco"], diff --git a/requirements_all.txt b/requirements_all.txt index a0e10cdf991..13fc6ace1d2 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -175,7 +175,7 @@ aioguardian==1.0.4 aioharmony==0.2.7 # homeassistant.components.homekit_controller -aiohomekit==0.2.67 +aiohomekit==0.4.0 # homeassistant.components.emulated_hue # homeassistant.components.http diff --git a/requirements_test_all.txt b/requirements_test_all.txt index 70585ece828..8e76f627281 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -112,7 +112,7 @@ aioguardian==1.0.4 aioharmony==0.2.7 # homeassistant.components.homekit_controller -aiohomekit==0.2.67 +aiohomekit==0.4.0 # homeassistant.components.emulated_hue # homeassistant.components.http