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

This commit is contained in:
Otto Winter 2019-05-31 11:27:27 +02:00
parent bfc8d2457c
commit 9be1b72ed7
No known key found for this signature in database
GPG Key ID: DB66C0BE6013F97E

View File

@ -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(