Skip to content
Snippets Groups Projects
Unverified Commit 15bd5bf6 authored by epenet's avatar epenet Committed by GitHub
Browse files

Use new reauth helpers in sunweg (#128747)

parent b35c1d85
No related branches found
No related tags found
No related merge requests found
...@@ -124,12 +124,6 @@ class SunWEGConfigFlow(ConfigFlow, domain=DOMAIN): ...@@ -124,12 +124,6 @@ class SunWEGConfigFlow(ConfigFlow, domain=DOMAIN):
if conf_result is not None: if conf_result is not None:
return conf_result return conf_result
entry = self.hass.config_entries.async_get_entry(self.context["entry_id"]) return self.async_update_reload_and_abort(
if entry is not None: self._get_reauth_entry(), data=self.data
data: Mapping[str, Any] = self.data )
self.hass.config_entries.async_update_entry(entry, data=data)
self.hass.async_create_task(
self.hass.config_entries.async_reload(entry.entry_id)
)
return self.async_abort(reason="reauth_successful")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment