mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Retry sense setup later if listing devices times out. (#33455)
This commit is contained in:
parent
b783aab41b
commit
f085a0c54a
@ -106,7 +106,10 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry):
|
|||||||
raise ConfigEntryNotReady
|
raise ConfigEntryNotReady
|
||||||
|
|
||||||
sense_devices_data = SenseDevicesData()
|
sense_devices_data = SenseDevicesData()
|
||||||
sense_discovered_devices = await gateway.get_discovered_device_data()
|
try:
|
||||||
|
sense_discovered_devices = await gateway.get_discovered_device_data()
|
||||||
|
except SENSE_TIMEOUT_EXCEPTIONS:
|
||||||
|
raise ConfigEntryNotReady
|
||||||
|
|
||||||
hass.data[DOMAIN][entry.entry_id] = {
|
hass.data[DOMAIN][entry.entry_id] = {
|
||||||
SENSE_DATA: gateway,
|
SENSE_DATA: gateway,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user