Fix ESPHome config flow with invalid config entry (#24213)

pull/24218/head
Otto Winter 2019-05-31 11:27:27 +02:00 committed by Pascal Vizeli
parent dedc2ef918
commit 5610541515
1 changed files with 2 additions and 1 deletions

View File

@ -94,6 +94,7 @@ class EsphomeFlowHandler(config_entries.ConfigFlow):
data = self.hass.data[DATA_KEY][
entry.entry_id] # type: RuntimeEntryData
# Node names are unique in the network
if data.device_info is not None:
already_configured = data.device_info.name == node_name
if already_configured: