Fix adding Hue bridge manually by IP (#113055)

This commit is contained in:
Marcel van der Veldt 2024-03-11 12:35:41 +01:00 committed by GitHub
parent 7fd5c3ed61
commit a7a30581fc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -117,7 +117,7 @@ class HueFlowHandler(ConfigFlow, domain=DOMAIN):
websession=aiohttp_client.async_get_clientsession(self.hass)
)
except TimeoutError:
return self.async_abort(reason="discover_timeout")
bridges = []
if bridges:
# Find already configured hosts

View File

@ -260,8 +260,8 @@ async def test_flow_timeout_discovery(hass: HomeAssistant) -> None:
const.DOMAIN, context={"source": config_entries.SOURCE_USER}
)
assert result["type"] == "abort"
assert result["reason"] == "discover_timeout"
assert result["type"] == "form"
assert result["step_id"] == "manual"
async def test_flow_link_unknown_error(hass: HomeAssistant) -> None: