Revert bond reload on setup_retry discovery (#72744)

This commit is contained in:
J. Nick Koston 2022-05-30 19:51:35 -10:00 committed by GitHub
parent 5fdc694325
commit b3682a5c81
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -114,7 +114,6 @@ class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
changed = new_data != dict(entry.data)
if changed:
hass.config_entries.async_update_entry(entry, data=new_data)
if changed or entry.state is ConfigEntryState.SETUP_RETRY:
entry_id = entry.entry_id
hass.async_create_task(hass.config_entries.async_reload(entry_id))
raise AbortFlow("already_configured")