Skip to content

Commit

Permalink
Fix Intellifire UDP timeout (home-assistant#80204)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeeftor authored Oct 15, 2022
1 parent ff2d762 commit 5efc706
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions homeassistant/components/intellifire/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -62,7 +62,7 @@ def __init__(self):
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)
Expand Down
8 changes: 6 additions & 2 deletions homeassistant/components/intellifire/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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-*"
}
]
}
2 changes: 1 addition & 1 deletion requirements_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion requirements_test_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5efc706

Please sign in to comment.