[BUG] Error: Handling request
See original GitHub issueEnvironment
- ShellyForHASS release with the issue: 0.2.0
- Last working ShellyForHASS release (if known): 0.2.0
- Home Assistant Core release with the issue: 0.115.0b9
- Operating environment (Home Assistant/Supervised/Docker/venv): supervised
Describe the bug
When trying to configure the S4H in the integrations panel, the popup shows that its being installed but sits there and never finishes. With debug active, I get the following error:
Log Details (ERROR)
Logger: aiohttp.server
Source: custom_components/shelly/config_flow.py:44
First occurred: 11:32:59 (1 occurrences)
Last logged: 11:32:59
Steps to Reproduce
Install via HACS or manually, same result. Uninstall, reinstall no fix.
Expected behavior
Popup should close after install tasks finish and config form should become available
Screenshots
Traceback/Error logs
Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 418, in start
resp = await task
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_app.py", line 458, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_middlewares.py", line 119, in impl
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 18, in request_context_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 72, in ban_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 127, in auth_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 129, in handle
result = await result
File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 160, in get
return await super().get(request, flow_id)
File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 92, in get
result = await self._flow_mgr.async_configure(flow_id)
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 156, in async_configure
result = await self._async_handle_step(flow, cur_step["step_id"], user_input)
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 204, in _async_handle_step
result: Dict = await getattr(flow, method)(user_input)
File "/config/custom_components/shelly/config_flow.py", line 44, in async_step_input
title=user_input["id_prefix"],
TypeError: 'NoneType' object is not subscriptable
Additional context
Possibly self-inflicted, I had tried the new built-in Shelly too before realising that it was a little lite for my needs. I uninstalled that restart and then issues startedsometime after that. Before then I had actually updated to 0.2.0 which had fixed my CoAP warnings and fixed all the latency and associated issues with dimmers etc.
Issue Analytics
- State:
- Created 3 years ago
- Comments:17 (2 by maintainers)
Top Results From Across the Web
Error monitoring and exception handling in large-scale ...
Learn how to handle errors and exceptions on large scale software projects, with best practices, tools and tips.
Read more >Automatically Detecting Error Handling Bugs Using ... - USENIX
In this paper, we design, implement, and evaluate EPEX, a tool that uses error specifications to identify and symbolically explore different error paths...
Read more >Improper Error Handling - OWASP Foundation
Improper handling of errors can introduce a variety of security problems for a web site. The most common problem is when detailed internal...
Read more >Chapter 8 Bugs and Error Handling - Eloquent JavaScript
When a function cannot proceed normally, what we would like to do is just stop what we are doing and immediately jump back...
Read more >Guide to Frontend Error Handling - Rollbar
Discover the secrets to effective error handling and how to track errors in real-time. Don't miss out on the essential tips in this ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I have added some code that hopefully takes care of this.
When will this fix be available? Currently its blocking me from using the module 😦