Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ESPHome config flow with invalid config entry #24213

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion homeassistant/components/esphome/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ async def async_step_zeroconf(self, user_input: ConfigType):
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(
Expand Down