mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 04:37:06 +00:00
Fix Intellifire UDP timeout (#80204)
This commit is contained in:
parent
ff2d762f55
commit
5efc706473
@ -38,7 +38,7 @@ async def validate_host_input(host: str, dhcp_mode: bool = False) -> str:
|
|||||||
"""
|
"""
|
||||||
LOGGER.debug("Instantiating IntellifireAPI with host: [%s]", host)
|
LOGGER.debug("Instantiating IntellifireAPI with host: [%s]", host)
|
||||||
api = IntellifireAPILocal(fireplace_ip=host)
|
api = IntellifireAPILocal(fireplace_ip=host)
|
||||||
await api.poll(supress_warnings=dhcp_mode)
|
await api.poll(suppress_warnings=dhcp_mode)
|
||||||
serial = api.data.serial
|
serial = api.data.serial
|
||||||
|
|
||||||
LOGGER.debug("Found a fireplace: %s", serial)
|
LOGGER.debug("Found a fireplace: %s", serial)
|
||||||
@ -62,7 +62,7 @@ class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
|
|||||||
async def _find_fireplaces(self):
|
async def _find_fireplaces(self):
|
||||||
"""Perform UDP discovery."""
|
"""Perform UDP discovery."""
|
||||||
fireplace_finder = AsyncUDPFireplaceFinder()
|
fireplace_finder = AsyncUDPFireplaceFinder()
|
||||||
discovered_hosts = await fireplace_finder.search_fireplace(timeout=1)
|
discovered_hosts = await fireplace_finder.search_fireplace(timeout=12)
|
||||||
configured_hosts = {
|
configured_hosts = {
|
||||||
entry.data[CONF_HOST]
|
entry.data[CONF_HOST]
|
||||||
for entry in self._async_current_entries(include_ignore=False)
|
for entry in self._async_current_entries(include_ignore=False)
|
||||||
|
@ -3,9 +3,13 @@
|
|||||||
"name": "IntelliFire",
|
"name": "IntelliFire",
|
||||||
"config_flow": true,
|
"config_flow": true,
|
||||||
"documentation": "https://www.home-assistant.io/integrations/intellifire",
|
"documentation": "https://www.home-assistant.io/integrations/intellifire",
|
||||||
"requirements": ["intellifire4py==2.0.1"],
|
"requirements": ["intellifire4py==2.2.1"],
|
||||||
"codeowners": ["@jeeftor"],
|
"codeowners": ["@jeeftor"],
|
||||||
"iot_class": "local_polling",
|
"iot_class": "local_polling",
|
||||||
"loggers": ["intellifire4py"],
|
"loggers": ["intellifire4py"],
|
||||||
"dhcp": [{ "hostname": "zentrios-*" }]
|
"dhcp": [
|
||||||
|
{
|
||||||
|
"hostname": "zentrios-*"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
@ -940,7 +940,7 @@ inkbird-ble==0.5.5
|
|||||||
insteon-frontend-home-assistant==0.2.0
|
insteon-frontend-home-assistant==0.2.0
|
||||||
|
|
||||||
# homeassistant.components.intellifire
|
# homeassistant.components.intellifire
|
||||||
intellifire4py==2.0.1
|
intellifire4py==2.2.1
|
||||||
|
|
||||||
# homeassistant.components.iotawatt
|
# homeassistant.components.iotawatt
|
||||||
iotawattpy==0.1.0
|
iotawattpy==0.1.0
|
||||||
|
@ -696,7 +696,7 @@ inkbird-ble==0.5.5
|
|||||||
insteon-frontend-home-assistant==0.2.0
|
insteon-frontend-home-assistant==0.2.0
|
||||||
|
|
||||||
# homeassistant.components.intellifire
|
# homeassistant.components.intellifire
|
||||||
intellifire4py==2.0.1
|
intellifire4py==2.2.1
|
||||||
|
|
||||||
# homeassistant.components.iotawatt
|
# homeassistant.components.iotawatt
|
||||||
iotawattpy==0.1.0
|
iotawattpy==0.1.0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user