mirror of
https://github.com/home-assistant/core.git
synced 2025-07-09 22:37:11 +00:00
parent
ce79b26ab6
commit
25cfa8afdd
@ -82,9 +82,9 @@ async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry) -> b
|
|||||||
# Fetch initial data so we have data when entities subscribe
|
# Fetch initial data so we have data when entities subscribe
|
||||||
try:
|
try:
|
||||||
await coordinator_device_config_update.async_config_entry_first_refresh()
|
await coordinator_device_config_update.async_config_entry_first_refresh()
|
||||||
except ConfigEntryNotReady as err:
|
except ConfigEntryNotReady:
|
||||||
await host.stop()
|
await host.stop()
|
||||||
raise err
|
raise
|
||||||
|
|
||||||
hass.data.setdefault(DOMAIN, {})[config_entry.entry_id] = ReolinkData(
|
hass.data.setdefault(DOMAIN, {})[config_entry.entry_id] = ReolinkData(
|
||||||
host=host,
|
host=host,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user