My Unifi integration appears to be broken. I set up the integration with a local only admin level user account forever ago, but Unifi updated and now I keep getting MFA emails from Unifi.
HA version: 2025.1.1, problem started months ago though.
My logs are full of these (note the 12002 occurrences ) :
Warning:
(12002 occurrences)
Last logged: 6:48:18 AM
- Exception on update Call https://192.168.X.X:443/proxy/network/api/s/default/rest/portforward received 401 Unauthorized
- Exception on update Call https://192.168.X.X:443/proxy/network/api/self/sites received 401 Unauthorized
- Exception on update Call https://192.168.X.X:443/proxy/network/api/s/default/stat/sysinfo received 401 Unauthorized
- Exception on update Call https://192.168.X.X:443/proxy/network/v2/api/site/default/trafficrules received 401 Unauthorized
- Exception on update Call https://192.168.X.X:443/proxy/network/api/s/default/rest/wlanconf received 401 Unauthorized
Error:
(2 occurrences)
Last logged: 6:48:13 AMError setting up entry Default for unifi
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/config_entries.py”, line 640, in __async_setup_with_context
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/components/unifi/init.py”, line 52, in async_setup_entry
await hub.initialize()
File “/usr/src/homeassistant/homeassistant/components/unifi/hub/hub.py”, line 88, in initialize
await self.entity_loader.initialize()
File “/usr/src/homeassistant/homeassistant/components/unifi/hub/entity_loader.py”, line 81, in initialize
await self._refresh_api_data()
File “/usr/src/homeassistant/homeassistant/components/unifi/hub/entity_loader.py”, line 102, in _refresh_api_data
await self._refresh_data(self.api_updaters)
File “/usr/src/homeassistant/homeassistant/components/unifi/hub/entity_loader.py”, line 88, in _refresh_data
results = await asyncio.gather(
^^^^^^^^^^^^^^^^^^^^^
…<2 lines>…
)
^
asyncio.exceptions.CancelledError