diff --git a/homeassistant/components/unifi/config_flow.py b/homeassistant/components/unifi/config_flow.py index e703f393d683a5..af4e0fde1371bd 100644 --- a/homeassistant/components/unifi/config_flow.py +++ b/homeassistant/components/unifi/config_flow.py @@ -164,10 +164,14 @@ async def async_step_site( abort_reason = "reauth_successful" if config_entry: - hub = config_entry.runtime_data + try: + hub = config_entry.runtime_data - if hub and hub.available: - return self.async_abort(reason="already_configured") + 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