mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 09:47:13 +00:00
Handle empty mylink response at startup (#46241)
This commit is contained in:
parent
fcae840641
commit
c0a1fc2916
@ -108,6 +108,9 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry):
|
||||
)
|
||||
return False
|
||||
|
||||
if "result" not in mylink_status:
|
||||
raise ConfigEntryNotReady("The Somfy MyLink device returned an empty result")
|
||||
|
||||
_async_migrate_entity_config(hass, entry, mylink_status)
|
||||
|
||||
undo_listener = entry.add_update_listener(_async_update_listener)
|
||||
|
Loading…
x
Reference in New Issue
Block a user