core: Error setting up entry Default for unifi
The problem
on (re)start, Unify integration regularly fails and show Error setting up entry Default for unifi
both local access via webbrowser and App via cloud are in order and show connected devices
What version of Home Assistant Core has the issue?
2021.11.2
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Unifi
Link to integration documentation on our website
https://www.home-assistant.io/integrations/unifi/
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Logger: homeassistant.config_entries
Source: components/unifi/controller.py:316
First occurred: 15:16:08 (1 occurrences)
Last logged: 15:16:08
Error setting up entry Default for unifi
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 304, in async_setup
result = await component.async_setup_entry(hass, self) # type: ignore
File "/usr/src/homeassistant/homeassistant/components/unifi/__init__.py", line 38, in async_setup_entry
if not await controller.async_setup():
File "/usr/src/homeassistant/homeassistant/components/unifi/controller.py", line 316, in async_setup
await self.api.initialize()
File "/usr/local/lib/python3.9/site-packages/aiounifi/controller.py", line 138, in initialize
await self.clients.update()
File "/usr/local/lib/python3.9/site-packages/aiounifi/api.py", line 111, in update
raw = await self._request("get", self._path)
File "/usr/local/lib/python3.9/site-packages/aiounifi/controller.py", line 259, in request
return await self._request(method, path, json, url)
File "/usr/local/lib/python3.9/site-packages/aiounifi/controller.py", line 327, in _request
raise RequestError(
aiounifi.errors.RequestError: Error requesting data from 192.168.1.1: Server disconnected
Additional information
hardware: Ubiquiti Dreammachine Pro resulting in
on a consecutive restart, that seems to setup alright, I still see this now:
2021-11-09 15:26:46 ERROR (MainThread) [homeassistant.components.unifi] Error connecting to the UniFi controller at 192.168.1.1:
however, the integrations has been setup:
and trackers are live.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 36 (27 by maintainers)
Its a bug which I think has been solved by UniFi since spring this year. I will probably remove it in the future.
Its about wireless devices going away but will show up as a wired device which is home so it bugged out the device tracker. The Option allows the user to disable the logic of the integration that workarounds the bug.