Call coordinator.shutdown() when ConfigEntryNotReady (#42833)
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…
Reference in New Issue