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

"Can redirect only to http or https" #43

Open
clabbo opened this issue Apr 17, 2023 · 0 comments
Open

"Can redirect only to http or https" #43

clabbo opened this issue Apr 17, 2023 · 0 comments

Comments

@clabbo
Copy link

clabbo commented Apr 17, 2023

Hi
Is it only me who get "Can redirect only to http or https" when Home Assistant loads? Vwid connect hasn't worked for a couple of weeks. I have updated to the latest source, all URLs should be ok.

2023-04-17 21:26:36.972 ERROR (MainThread) [homeassistant.components.sensor] vwid: Error on device update!
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 521, in _async_add_entity
await entity.async_device_update(warning=False)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 748, in async_device_update
await task
File "/config/custom_components/vwid/sensor.py", line 93, in async_update
data = await self.api.get_status()
File "/config/custom_components/vwid/libvwid.py", line 208, in get_status
if await self.reconnect():
File "/config/custom_components/vwid/libvwid.py", line 94, in reconnect
response = await self.session.get(LOGIN_BASE + '/authorize', params=payload)
File "/usr/local/lib/python3.10/site-packages/aiohttp/client.py", line 624, in _request
raise ValueError("Can redirect only to http or https")

My payload is comprised of:
{'nonce': 'n1kFY2seLfFzBoXS', 'redirect_uri': 'weconnect://authenticated'}

What is supposed to happen when the redirect to 'weconnect://' is done? Anyway, client.py does not seem to agree it is a good idea...

Anyone knows how to fix this without editing client.py?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant