Skip to content

Commit

Permalink
Revert "UniFi temp fix to handle runtime data (#120031)"
Browse files Browse the repository at this point in the history
This reverts commit 94800cb.
  • Loading branch information
frenck authored Jun 21, 2024
1 parent c1dc6fd commit 63c36a6
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions homeassistant/components/unifi/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,14 +164,10 @@ async def async_step_site(
abort_reason = "reauth_successful"

if config_entry:
try:
hub = config_entry.runtime_data
hub = config_entry.runtime_data

if hub and hub.available:
return self.async_abort(reason="already_configured")

except AttributeError:
pass
if hub and hub.available:
return self.async_abort(reason="already_configured")

return self.async_update_reload_and_abort(
config_entry, data=self.config, reason=abort_reason
Expand Down

0 comments on commit 63c36a6

Please sign in to comment.