-
Notifications
You must be signed in to change notification settings - Fork 10
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
F24 and Q8 down/slow. Parse error #10
Comments
Exact same issue for me, since updating to the newest core edition of hass |
I am adding the timeout, as I should have done in the first place.... ;-) The missing data from f24/q8 ("") is because their prices i served by an API and not a webpage. |
Hi,
Thanks for this awesome HA extension!
It looks like
F24
andQ8
API endpoints are very slow (randomly) at the moment (""
returned from API's). Which results in all fuel prices will be marked asUnavailable
.This causes multiple timeouts/errors in HA logs:
Would it maybe be an option to add the
timeout
argument to therequest.get()
and validate, that you get any content back in the response. The status is200
- but no content.Fuelprices_DK/custom_components/fuelprices_dk/fuelprices_dk_parsers.py
Lines 192 to 197 in e224e01
I guess
r.text
is valid, but it is empty.Fuelprices_DK/custom_components/fuelprices_dk/fuelprices_dk_parsers.py
Lines 199 to 201 in e224e01
The text was updated successfully, but these errors were encountered: