Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Intellifire UDP timeout #80204

Merged
merged 4 commits into from
Oct 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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