mirror of
https://github.com/home-assistant/core.git
synced 2025-08-02 20:25:07 +02:00
Handle empty mylink response at startup (#46241)
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user