Skip to content

Commit

Permalink
Use new config entry update/abort helper in enphase-envoy (part 2) (#…
Browse files Browse the repository at this point in the history
…108689)

Use new config entry update/abort helper in enphase_envoy

uses the new helper from #108034
  • Loading branch information
bdraco committed Jan 22, 2024
1 parent 0b79504 commit def42c6
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions homeassistant/components/enphase_envoy/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,9 @@ async def async_step_zeroconf(
and entry.data[CONF_HOST] == self.ip_address
):
title = f"{ENVOY} {serial}" if entry.title == ENVOY else ENVOY
self.hass.config_entries.async_update_entry(
entry, title=title, unique_id=serial
return self.async_update_reload_and_abort(
entry, title=title, unique_id=serial, reason="already_configured"
)
self.hass.async_create_task(
self.hass.config_entries.async_reload(entry.entry_id)
)
return self.async_abort(reason="already_configured")

return await self.async_step_user()

Expand Down

0 comments on commit def42c6

Please sign in to comment.