mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Call coordinator.shutdown() when ConfigEntryNotReady (#42833)
This commit is contained in:
parent
1fe66df962
commit
34f5ad33e9
@ -34,6 +34,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry):
|
||||
await coordinator.async_refresh()
|
||||
|
||||
if not coordinator.last_update_success:
|
||||
coordinator.shutdown()
|
||||
raise ConfigEntryNotReady
|
||||
|
||||
hass.data.setdefault(DOMAIN, {})
|
||||
|
Loading…
x
Reference in New Issue
Block a user