mirror of
https://github.com/home-assistant/core.git
synced 2025-08-02 12:15:08 +02:00
Call coordinator.shutdown() when ConfigEntryNotReady (#42833)
This commit is contained in:
@@ -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, {})
|
||||
|
Reference in New Issue
Block a user