mirror of
https://github.com/home-assistant/core.git
synced 2025-07-12 15:57:06 +00:00
Adjust config entry state checks in esphome (#138914)
This commit is contained in:
parent
872cca9935
commit
e79a1a52c3
@ -6,7 +6,7 @@ import asyncio
|
|||||||
import logging
|
import logging
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
from homeassistant.config_entries import SOURCE_REAUTH, ConfigEntryState
|
from homeassistant.config_entries import SOURCE_REAUTH
|
||||||
from homeassistant.const import EVENT_HOMEASSISTANT_STOP
|
from homeassistant.const import EVENT_HOMEASSISTANT_STOP
|
||||||
from homeassistant.core import CALLBACK_TYPE, Event, HomeAssistant, callback
|
from homeassistant.core import CALLBACK_TYPE, Event, HomeAssistant, callback
|
||||||
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
||||||
@ -108,8 +108,7 @@ class ESPHomeDashboardManager:
|
|||||||
|
|
||||||
reloads = [
|
reloads = [
|
||||||
hass.config_entries.async_reload(entry.entry_id)
|
hass.config_entries.async_reload(entry.entry_id)
|
||||||
for entry in hass.config_entries.async_entries(DOMAIN)
|
for entry in hass.config_entries.async_loaded_entries(DOMAIN)
|
||||||
if entry.state is ConfigEntryState.LOADED
|
|
||||||
]
|
]
|
||||||
# Re-auth flows will check the dashboard for encryption key when the form is requested
|
# Re-auth flows will check the dashboard for encryption key when the form is requested
|
||||||
# but we only trigger reauth if the dashboard is available.
|
# but we only trigger reauth if the dashboard is available.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user