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