zachcheatham / ha-omada

Home Assistant TP-Link Omada Integration
189 stars 26 forks source link

Error setting up entry OC200: Default for omada #30

Open chopst1x opened 2 years ago

chopst1x commented 2 years ago

Hi, unfortantley this fails to load now with the below error, any idea? Thanks.

2022-06-04 21:15:24 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry OC200: Default for omada Traceback (most recent call last): File "/config/custom_components/omada/controller.py", line 147, in get_api_controller await controller.login() File "/config/custom_components/omada/api/controller.py", line 51, in login response = await self._controller_request("post", "/login", json=auth) File "/config/custom_components/omada/api/controller.py", line 155, in _controller_request return await self._request( File "/config/custom_components/omada/api/controller.py", line 180, in _request async with self._session.request( File "/usr/local/lib/python3.9/site-packages/aiohttp/client.py", line 1138, in aenter self._resp = await self._coro File "/usr/local/lib/python3.9/site-packages/aiohttp/client.py", line 559, in _request await resp.start(conn) File "/usr/local/lib/python3.9/site-packages/aiohttp/client_reqrep.py", line 898, in start message, payload = await protocol.read() # type: ignore[union-attr] File "/usr/local/lib/python3.9/site-packages/aiohttp/streams.py", line 616, in read await self._waiter asyncio.exceptions.CancelledError During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 339, in async_setup result = await component.async_setup_entry(hass, self) File "/config/custom_components/omada/init.py", line 32, in async_setup_entry await omada_controller.async_setup() File "/config/custom_components/omada/controller.py", line 74, in async_setup self.api = await get_api_controller( File "/config/custom_components/omada/controller.py", line 147, in get_api_controller await controller.login() File "/usr/local/lib/python3.9/site-packages/async_timeout/init.py", line 116, in exit self._do_exit(exc_type) File "/usr/local/lib/python3.9/site-packages/async_timeout/init.py", line 212, in _do_exit raise asyncio.TimeoutError asyncio.exceptions.TimeoutError

jone9618 commented 2 years ago

Hi. I'm getting this too. Most, but not all, times I restart HA.

adaofeliz commented 2 years ago

Same problem. I have to force HA restart multiple time until Omada Integration starts correctly.

`Error setting up entry VP_Controller: Default for omada Traceback (most recent call last): File "/config/custom_components/omada/controller.py", line 147, in get_api_controller await controller.login() File "/config/custom_components/omada/api/controller.py", line 48, in login await self._update_api_info() File "/config/custom_components/omada/api/controller.py", line 65, in _update_api_info response = await self._request("get", f"{self.url}/api/info") File "/config/custom_components/omada/api/controller.py", line 180, in _request async with self._session.request( File "/usr/local/lib/python3.9/site-packages/aiohttp/client.py", line 1138, in aenter self._resp = await self._coro File "/usr/local/lib/python3.9/site-packages/aiohttp/client.py", line 535, in _request conn = await self._connector.connect( File "/usr/local/lib/python3.9/site-packages/aiohttp/connector.py", line 542, in connect proto = await self._create_connection(req, traces, timeout) File "/usr/local/lib/python3.9/site-packages/aiohttp/connector.py", line 907, in _createconnection , proto = await self._create_direct_connection(req, traces, timeout) File "/usr/local/lib/python3.9/site-packages/aiohttp/connector.py", line 1154, in _create_direct_connection hosts = await asyncio.shield(host_resolved) asyncio.exceptions.CancelledError

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 339, in async_setup result = await component.async_setup_entry(hass, self) File "/config/custom_components/omada/init.py", line 32, in async_setup_entry await omada_controller.async_setup() File "/config/custom_components/omada/controller.py", line 74, in async_setup self.api = await get_api_controller( File "/config/custom_components/omada/controller.py", line 147, in get_api_controller await controller.login() File "/usr/local/lib/python3.9/site-packages/async_timeout/init.py", line 116, in exit self._do_exit(exc_type) File "/usr/local/lib/python3.9/site-packages/async_timeout/init.py", line 212, in _do_exit raise asyncio.TimeoutError asyncio.exceptions.TimeoutError`