From 5efc7064737d58aa4f76f80669915d62a12e2a02 Mon Sep 17 00:00:00 2001 From: Jeef Date: Sat, 15 Oct 2022 14:09:00 -0600 Subject: [PATCH] Fix Intellifire UDP timeout (#80204) --- homeassistant/components/intellifire/config_flow.py | 4 ++-- homeassistant/components/intellifire/manifest.json | 8 ++++++-- requirements_all.txt | 2 +- requirements_test_all.txt | 2 +- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/homeassistant/components/intellifire/config_flow.py b/homeassistant/components/intellifire/config_flow.py index 4556668b702..d2b019cb381 100644 --- a/homeassistant/components/intellifire/config_flow.py +++ b/homeassistant/components/intellifire/config_flow.py @@ -38,7 +38,7 @@ async def validate_host_input(host: str, dhcp_mode: bool = False) -> str: """ LOGGER.debug("Instantiating IntellifireAPI with host: [%s]", host) api = IntellifireAPILocal(fireplace_ip=host) - await api.poll(supress_warnings=dhcp_mode) + await api.poll(suppress_warnings=dhcp_mode) serial = api.data.serial LOGGER.debug("Found a fireplace: %s", serial) @@ -62,7 +62,7 @@ class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN): async def _find_fireplaces(self): """Perform UDP discovery.""" fireplace_finder = AsyncUDPFireplaceFinder() - discovered_hosts = await fireplace_finder.search_fireplace(timeout=1) + discovered_hosts = await fireplace_finder.search_fireplace(timeout=12) configured_hosts = { entry.data[CONF_HOST] for entry in self._async_current_entries(include_ignore=False) diff --git a/homeassistant/components/intellifire/manifest.json b/homeassistant/components/intellifire/manifest.json index e2ae4bb8abe..67dc5a96ad7 100644 --- a/homeassistant/components/intellifire/manifest.json +++ b/homeassistant/components/intellifire/manifest.json @@ -3,9 +3,13 @@ "name": "IntelliFire", "config_flow": true, "documentation": "https://www.home-assistant.io/integrations/intellifire", - "requirements": ["intellifire4py==2.0.1"], + "requirements": ["intellifire4py==2.2.1"], "codeowners": ["@jeeftor"], "iot_class": "local_polling", "loggers": ["intellifire4py"], - "dhcp": [{ "hostname": "zentrios-*" }] + "dhcp": [ + { + "hostname": "zentrios-*" + } + ] } diff --git a/requirements_all.txt b/requirements_all.txt index cb50784a4ae..1e87e4d18a3 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -940,7 +940,7 @@ inkbird-ble==0.5.5 insteon-frontend-home-assistant==0.2.0 # homeassistant.components.intellifire -intellifire4py==2.0.1 +intellifire4py==2.2.1 # homeassistant.components.iotawatt iotawattpy==0.1.0 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index ab00afd91da..aa96762bd8b 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -696,7 +696,7 @@ inkbird-ble==0.5.5 insteon-frontend-home-assistant==0.2.0 # homeassistant.components.intellifire -intellifire4py==2.0.1 +intellifire4py==2.2.1 # homeassistant.components.iotawatt iotawattpy==0.1.0