You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: