Handle somfy error 404 during setup (#41298)

This commit is contained in:
Thibaut 2020-10-06 15:02:03 +02:00 committed by GitHub
parent 8bcd6c1880
commit 61f919b18c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -89,6 +89,7 @@ async def async_setup_entry(hass: HomeAssistantType, entry: ConfigEntry):
)
hass.data[DOMAIN][API] = api.ConfigEntrySomfyApi(hass, entry, implementation)
hass.data[DOMAIN][DEVICES] = []
await update_all_devices(hass)