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

Unable to parse XML from string: no element found: line 1, column 0 #1

Open
emcniece opened this issue Aug 7, 2020 · 1 comment
Open

Comments

@emcniece
Copy link
Owner

emcniece commented Aug 7, 2020

Found after the sensor had been performing well for a few hours:

Logger: custom_components.bchydro.sensor
Source: custom_components/bchydro/sensor.py:54
Integration: bchydro (documentation)
First occurred: 1:46:18 PM (2 occurrences)
Last logged: 1:49:19 PM

Unable to parse XML from string: no element found: line 1, column 0

The UI element is reporting an unknown state:

Screen Shot 2020-08-07 at 1 53 02 PM

Is there a way to have the sensor fail and keep its prior state?

@emcniece
Copy link
Owner Author

emcniece commented Jan 5, 2021

Turns out this was happening when the auth session expired: making another XML request redirects to the login page which is of course invalid XML.

Solved in #6

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