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.py line 815: hass_url undefined #2408

Closed
danielbrunt57 opened this issue Aug 7, 2024 · 12 comments · Fixed by #2417
Closed

config_flow.py line 815: hass_url undefined #2408

danielbrunt57 opened this issue Aug 7, 2024 · 12 comments · Fixed by #2417
Assignees
Labels
bug Something isn't working pr-submitted

Comments

@danielbrunt57
Copy link
Collaborator

Sorry everyone but I just had an automatic re-auth situation which triggered the update_schema_defaults and unfortunately there was a pre-existing self.config.pop("hass_url") at line 621 in async def _test_login making hass_url unavailable after that.

I removed lines 621-622, restarted and the problem was resolved.

Issuing a new PR for it...

@LorenzoRogai
Copy link

just tested this by changing code manually but still error

image

@bkr1969
Copy link

bkr1969 commented Aug 7, 2024

Any ETA to fix this? I can "install" the integration, but none of my devices are listed now. Reconfiguring just causes error.

@gabriele-latino
Copy link

Hi, same issue here on 2024.8

@mazdarx2001
Copy link

Same here, does anyone know if this is an issue on all alexa Media integrations under the new 2024.8? or just a small number?

@Impedanz
Copy link

Impedanz commented Aug 7, 2024

Same Error here...

@tksly92
Copy link

tksly92 commented Aug 7, 2024

Same problem here on 2024.8.0

@bkr1969
Copy link

bkr1969 commented Aug 7, 2024

Not sure how you deleted line 622. There's an open { on that line. Am I missing something?

@LorenzoRogai
Copy link

hass_url error is fixable by changing the line to

CONF_HASS_URL, default=self.config.get(CONF_HASS_URL, DEFAULT_HASS_URL)

if you are in US then this will be enough. For the others countries alexapy will also need a fix #2407

@bkr1969
Copy link

bkr1969 commented Aug 7, 2024

Sorry. That doesn't fix the entire issue. The integration loads, but no devices are listed. A reconfigure still errors.

@danielbrunt57
Copy link
Collaborator Author

Sorry. That doesn't fix the entire issue. The integration loads, but no devices are listed. A reconfigure still errors.

as I am seeing also,,,

aiohttp.client_exceptions.InvalidUrlClientError: /errors/validateCaptcha

@fbnksr
Copy link

fbnksr commented Aug 9, 2024

hass_url error is fixable by changing the line to

CONF_HASS_URL, default=self.config.get(CONF_HASS_URL, DEFAULT_HASS_URL)

if you are in US then this will be enough. For the others countries alexapy will also need a fix #2407

This fixed the issue for me! Thanks!

@fbnksr
Copy link

fbnksr commented Aug 10, 2024

hass_url error is fixable by changing the line to


CONF_HASS_URL, default=self.config.get(CONF_HASS_URL, DEFAULT_HASS_URL)

if you are in US then this will be enough. For the others countries alexapy will also need a fix #2407

While this resolved the ‘failed to setup’ issue and everything is functioning again, some of my devices, like my Amazon smart plug, are no longer appearing. Any ideas on how to fix this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working pr-submitted
Projects
None yet
8 participants