From 34f5ad33e94eb47981701cef72a989918069c1cc Mon Sep 17 00:00:00 2001 From: Maciej Bieniek Date: Wed, 4 Nov 2020 15:35:54 +0100 Subject: [PATCH] Call coordinator.shutdown() when ConfigEntryNotReady (#42833) --- homeassistant/components/brother/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/homeassistant/components/brother/__init__.py b/homeassistant/components/brother/__init__.py index f7e5fbdb0d1f..8c5cdb2d7edd 100644 --- a/homeassistant/components/brother/__init__.py +++ b/homeassistant/components/brother/__init__.py @@ -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, {})