From a663445f25e42c01add7d8033952b11d3d582318 Mon Sep 17 00:00:00 2001 From: Jc2k Date: Tue, 16 Aug 2022 10:34:17 +0100 Subject: [PATCH] Bump aiohomekit to 1.3.0 (#76841) --- homeassistant/components/homekit_controller/config_flow.py | 5 ----- homeassistant/components/homekit_controller/manifest.json | 2 +- requirements_all.txt | 2 +- requirements_test_all.txt | 2 +- tests/components/homekit_controller/test_config_flow.py | 1 - 5 files changed, 3 insertions(+), 9 deletions(-) diff --git a/homeassistant/components/homekit_controller/config_flow.py b/homeassistant/components/homekit_controller/config_flow.py index eba531b917c..2ccdd557a5b 100644 --- a/homeassistant/components/homekit_controller/config_flow.py +++ b/homeassistant/components/homekit_controller/config_flow.py @@ -281,11 +281,6 @@ class HomekitControllerFlowHandler(config_entries.ConfigFlow, domain=DOMAIN): existing_entry, data={**existing_entry.data, **updated_ip_port} ) conn: HKDevice = self.hass.data[KNOWN_DEVICES][hkid] - # When we rediscover the device, let aiohomekit know - # that the device is available and we should not wait - # to retry connecting any longer. reconnect_soon - # will do nothing if the device is already connected - await conn.pairing.reconnect_soon() if config_num and conn.config_num != config_num: _LOGGER.debug( "HomeKit info %s: c# incremented, refreshing entities", hkid diff --git a/homeassistant/components/homekit_controller/manifest.json b/homeassistant/components/homekit_controller/manifest.json index ece53d29406..3f8d7828236 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==1.2.11"], + "requirements": ["aiohomekit==1.3.0"], "zeroconf": ["_hap._tcp.local.", "_hap._udp.local."], "bluetooth": [{ "manufacturer_id": 76, "manufacturer_data_start": [6] }], "dependencies": ["bluetooth", "zeroconf"], diff --git a/requirements_all.txt b/requirements_all.txt index 4bb2e474f03..5388db5998b 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -168,7 +168,7 @@ aioguardian==2022.07.0 aioharmony==0.2.9 # homeassistant.components.homekit_controller -aiohomekit==1.2.11 +aiohomekit==1.3.0 # homeassistant.components.emulated_hue # homeassistant.components.http diff --git a/requirements_test_all.txt b/requirements_test_all.txt index 9909033875d..9baff4f1dbd 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -152,7 +152,7 @@ aioguardian==2022.07.0 aioharmony==0.2.9 # homeassistant.components.homekit_controller -aiohomekit==1.2.11 +aiohomekit==1.3.0 # homeassistant.components.emulated_hue # homeassistant.components.http diff --git a/tests/components/homekit_controller/test_config_flow.py b/tests/components/homekit_controller/test_config_flow.py index ff9b89473d6..3f545be8931 100644 --- a/tests/components/homekit_controller/test_config_flow.py +++ b/tests/components/homekit_controller/test_config_flow.py @@ -524,7 +524,6 @@ async def test_discovery_already_configured_update_csharp(hass, controller): entry.add_to_hass(hass) connection_mock = AsyncMock() - connection_mock.pairing.connect.reconnect_soon = AsyncMock() connection_mock.async_notify_config_changed = MagicMock() hass.data[KNOWN_DEVICES] = {"AA:BB:CC:DD:EE:FF": connection_mock}