mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 10:47:10 +00:00
Fix ESPHome config flow with invalid config entry (#24213)
This commit is contained in:
parent
dedc2ef918
commit
5610541515
@ -94,6 +94,7 @@ class EsphomeFlowHandler(config_entries.ConfigFlow):
|
|||||||
data = self.hass.data[DATA_KEY][
|
data = self.hass.data[DATA_KEY][
|
||||||
entry.entry_id] # type: RuntimeEntryData
|
entry.entry_id] # type: RuntimeEntryData
|
||||||
# Node names are unique in the network
|
# Node names are unique in the network
|
||||||
|
if data.device_info is not None:
|
||||||
already_configured = data.device_info.name == node_name
|
already_configured = data.device_info.name == node_name
|
||||||
|
|
||||||
if already_configured:
|
if already_configured:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user