Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Config flow error #6

Open
Flix6x opened this issue Apr 23, 2024 · 0 comments
Open

Config flow error #6

Flix6x opened this issue Apr 23, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Flix6x
Copy link
Collaborator

Flix6x commented Apr 23, 2024

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
@Flix6x Flix6x added the bug Something isn't working label Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant