core: Homekit device is discovered but can't be configured
Home Assistant release with the issue:
arch : armv7 dev : false docker : true hassio : true os_name : Linux python_version : 3.7.6 version : 0.103.6 virtualenv : false
Last working Home Assistant release (if known):
Operating environment (Hass.io/Docker/Windows/etc.):
hassio on raspberry pi 3B Integration:
Homekit
Description of problem:
Although my homekit device is found by the discovery service, clicking on configure leads to a never ending spinning wheel and log shows the following error:
2020-01-08 19:59:41 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 73, in async_init
return await self._async_handle_step(flow, flow.init_step, data)
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 132, in _async_handle_step
result: Dict = await getattr(flow, method)(user_input)
File "/usr/src/homeassistant/homeassistant/components/homekit_controller/config_flow.py", line 132, in async_step_zeroconf
if any(hkid == flow["context"]["hkid"] for flow in active_flows):
File "/usr/src/homeassistant/homeassistant/components/homekit_controller/config_flow.py", line 132, in <genexpr>
if any(hkid == flow["context"]["hkid"] for flow in active_flows):
KeyError: 'hkid'
2020-01-08 20:00:02 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/aiohttp/web_protocol.py", line 418, in start
resp = await task
File "/usr/local/lib/python3.7/site-packages/aiohttp/web_app.py", line 458, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.7/site-packages/aiohttp/web_middlewares.py", line 119, in impl
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/real_ip.py", line 40, in real_ip_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 73, in ban_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 136, in auth_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 123, in handle
result = await result
File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 154, in get
return await super().get(request, flow_id)
File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 78, in get
result = await self._flow_mgr.async_configure(flow_id)
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 86, in async_configure
if cur_step.get("data_schema") is not None and user_input is not None:
AttributeError: 'NoneType' object has no attribute 'get'
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 18 (10 by maintainers)
I’m going to close this as the original issue is resolved and the follow on issue is the same as https://github.com/home-assistant/home-assistant/issues/25960. @Hukuma1 thank you for your help with this issue.