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

Integration failed to start #77

Closed
antonio-fiol opened this issue Jan 18, 2024 · 2 comments
Closed

Integration failed to start #77

antonio-fiol opened this issue Jan 18, 2024 · 2 comments
Labels
wibeee wtfs Wibeee device is hanging or returning nonsense from status.xml

Comments

@antonio-fiol
Copy link

I did not have debug logs enabled, but caught this on the log.

2024-01-17 21:27:39.015 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up wibeee platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 360, in _async_setup_platform
await asyncio.shield(task)
File "/config/custom_components/wibeee/sensor.py", line 228, in async_setup_entry
device = await api.async_fetch_device_info(retries=5)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/wibeee/api.py", line 67, in async_fetch_device_info
device_vars = {var['id']: var['value'] for var in values['values']['variable']}
~~~~~~^^^^^^^^^^
KeyError: 'values'

@antonio-fiol
Copy link
Author

I enabled debug and restarted HA and it started correctly.
This sounds like a corner case...

@luuuis
Copy link
Owner

luuuis commented Jan 18, 2024

This happens when Wibeee does not respond with a valid XML payload (another example here). If it happens again you do not need to restart HA, it's enough to reload the integration.

Settings – Home Assistant 2024-01-18 19-29-44

@luuuis luuuis closed this as completed Jan 18, 2024
@luuuis luuuis added the wibeee wtfs Wibeee device is hanging or returning nonsense from status.xml label Jan 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wibeee wtfs Wibeee device is hanging or returning nonsense from status.xml
Projects
None yet
Development

No branches or pull requests

2 participants