-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
bugSomething isn't workingSomething isn't working
Description
When filling in seita.energy as a host, I got an uninformative error in the UI. The HA logs showed more, though:
Traceback (most recent call last):
File "/config/custom_components/flexmeasures_hacs/config_flow.py", line 98, in async_step_user
info = await validate_input(self.hass, user_input)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/flexmeasures_hacs/config_flow.py", line 54, in validate_input
host, ssl = get_host_and_ssl_from_url(data["url"])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/flexmeasures_hacs/config_flow.py", line 239, in get_host_and_ssl_from_url
return host, ssl
^^^^
UnboundLocalError: cannot access local variable 'host' where it is not associated with a value
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working