mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 22:27:07 +00:00
UniFi temp fix to handle runtime data (#120031)
Co-authored-by: Franck Nijhof <git@frenck.dev>
This commit is contained in:
parent
eba429dc54
commit
94800cb11e
@ -164,11 +164,15 @@ class UnifiFlowHandler(ConfigFlow, domain=UNIFI_DOMAIN):
|
||||
abort_reason = "reauth_successful"
|
||||
|
||||
if config_entry:
|
||||
try:
|
||||
hub = config_entry.runtime_data
|
||||
|
||||
if hub and hub.available:
|
||||
return self.async_abort(reason="already_configured")
|
||||
|
||||
except AttributeError:
|
||||
pass
|
||||
|
||||
return self.async_update_reload_and_abort(
|
||||
config_entry, data=self.config, reason=abort_reason
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user