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

Entity unavailable error #30

Closed
JaniAst opened this issue Dec 5, 2022 · 7 comments
Closed

Entity unavailable error #30

JaniAst opened this issue Dec 5, 2022 · 7 comments

Comments

@JaniAst
Copy link

JaniAst commented Dec 5, 2022

Hi,

This error started today:

2022-12-05 14:39:02 ERROR (MainThread) [homeassistant.helpers.entity] Update for sensor.wvgzzze2zmp034600_soc fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 446, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 654, in async_device_update
raise exc
File "/config/custom_components/vwid/sensor.py", line 92, in async_update
data = await self.api.get_status()
File "/config/custom_components/vwid/libvwid.py", line 198, in get_status
if await self.reconnect():
File "/config/custom_components/vwid/libvwid.py", line 90, in reconnect
response = await self.session.get(LOGIN_BASE + '/authorize', params=payload)
File "/usr/local/lib/python3.9/site-packages/aiohttp/client.py", line 606, in _request
raise ValueError("Can redirect only to http or https")
ValueError: Can redirect only to http or https

@skagmo
Copy link
Owner

skagmo commented Dec 6, 2022

Just saw the same thing. Will look into it this evening. Looks like VW are doing incremental/small changes to their API these days...

@skagmo skagmo mentioned this issue Dec 6, 2022
@PalmSwe
Copy link

PalmSwe commented Dec 6, 2022

Exact same error since 1 day ago.

@skagmo
Copy link
Owner

skagmo commented Dec 6, 2022

A little larger change in the VW API this time, but should work now and attributes should be called the same as before.
Please test current master.

@JaniAst
Copy link
Author

JaniAst commented Dec 6, 2022

Working again. Thanks!

@mauromognon
Copy link

fixed! thanks a lot

@sebking1971
Copy link

thank you - fixed and tweaked to add miles for the UK :)

@skagmo
Copy link
Owner

skagmo commented Dec 7, 2022

Good to hear. Closing.

@skagmo skagmo closed this as completed Dec 7, 2022
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

5 participants