mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 14:17:45 +00:00
Fix ESPHome discovery for ignored config entries (#36964)
This commit is contained in:
parent
9f65dcf4ba
commit
46cb9cff41
@ -100,10 +100,10 @@ class EsphomeFlowHandler(ConfigFlow, domain=DOMAIN):
|
|||||||
for entry in self._async_current_entries():
|
for entry in self._async_current_entries():
|
||||||
already_configured = False
|
already_configured = False
|
||||||
|
|
||||||
if (
|
if CONF_HOST in entry.data and entry.data[CONF_HOST] in [
|
||||||
entry.data[CONF_HOST] == address
|
address,
|
||||||
or entry.data[CONF_HOST] == discovery_info[CONF_HOST]
|
discovery_info[CONF_HOST],
|
||||||
):
|
]:
|
||||||
# Is this address or IP address already configured?
|
# Is this address or IP address already configured?
|
||||||
already_configured = True
|
already_configured = True
|
||||||
elif entry.entry_id in self.hass.data.get(DATA_KEY, {}):
|
elif entry.entry_id in self.hass.data.get(DATA_KEY, {}):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user