Skip to content

Commit

Permalink
Call coordinator.shutdown() when ConfigEntryNotReady (#42833)
Browse files Browse the repository at this point in the history
  • Loading branch information
bieniu committed Nov 4, 2020
1 parent 1fe66df commit 34f5ad3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions homeassistant/components/brother/__init__.py
Expand Up @@ -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, {})
Expand Down

0 comments on commit 34f5ad3

Please sign in to comment.