schmittx / home-assistant-eero

Eero integration for Home Assistant
MIT License
108 stars 22 forks source link

Failed to set up "Unknown Error Occurred" on "Select network resources" screen #37

Closed theplaz closed 1 year ago

theplaz commented 1 year ago

On the window "Select network resources": The following error occurs with any number of Eero devices checked (0, 1, 2) and all profiles either deselected or selected. Note I have 2 different networks (different locations) and selected one of them.

From the logs: `This error originated from a custom integration.

Logger: aiohttp.server Source: custom_components/eero/config_flow.py:127 Integration: eero (documentation, issues) First occurred: 4:22:08 PM (10 occurrences) Last logged: 4:24:16 PM

Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request resp = await request_handler(request) File "/usr/local/lib/python3.10/site-packages/aiohttp/web_app.py", line 504, in _handle resp = await handler(request) File "/usr/local/lib/python3.10/site-packages/aiohttp/web_middlewares.py", line 117, in impl return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 60, in security_filter_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 100, in forwarded_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 79, in ban_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 236, in auth_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 136, in handle result = await result File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 177, in post return await super().post(request, flow_id) File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 62, in wrapper result = await method(view, request, *args, **kwargs) File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 109, in post result = await self._flow_mgr.async_configure(flow_id, data) File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 277, in async_configure result = await self._async_handle_step( File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 359, in _async_handle_step result: FlowResult = await getattr(flow, method)(user_input) File "/config/custom_components/eero/config_flow.py", line 127, in async_step_resources if network.id == self.user_input[CONF_NETWORKS][self.index]: IndexError: list index out of range `

theplaz commented 1 year ago

It worked if I kept both Networks (houses) selected.

schmittx commented 1 year ago

Please check with 1.2.0 and let me know if you continue to have problems.