Skip to content

Commit

Permalink
Guard for timeout errors during wled discovery (#64130)
Browse files Browse the repository at this point in the history
  • Loading branch information
balloob committed Jan 14, 2022
1 parent dee843b commit b0387ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion homeassistant/components/wled/config_flow.py
@@ -1,6 +1,7 @@
"""Config flow to configure the WLED integration."""
from __future__ import annotations

import asyncio
from typing import Any

import voluptuous as vol
Expand Down Expand Up @@ -74,7 +75,7 @@ async def async_step_zeroconf(
self.discovered_host = discovery_info.host
try:
self.discovered_device = await self._async_get_device(discovery_info.host)
except WLEDConnectionError:
except (WLEDConnectionError, asyncio.TimeoutError):
return self.async_abort(reason="cannot_connect")

await self.async_set_unique_id(self.discovered_device.info.mac_address)
Expand Down

0 comments on commit b0387ef

Please sign in to comment.