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

buienradar invalid literal #60200

Closed
vindaalex opened this issue Nov 23, 2021 · 3 comments · Fixed by #60473
Closed

buienradar invalid literal #60200

vindaalex opened this issue Nov 23, 2021 · 3 comments · Fixed by #60473

Comments

@vindaalex
Copy link

The problem

This error occurred and since then no new data from buienradar is received

What version of Home Assistant Core has the issue?

2021.5.5

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

buienradar

Link to integration documentation on our website

No response

Example YAML snippet

- platform: buienradar
  timeframe: 120
  monitored_conditions:
    - conditiondetailed
    - windspeed
    - irradiance
    - humidity
    - precipitation_forecast_total
    - precipitation
    - temperature

Anything in the logs that might be useful for us?

2021-11-22 14:48:13 INFO (MainThread) [buienradar.buienradar_json] Parse ws data: latitude: xx, longitude: xx
2021-11-22 14:48:13 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/buienradar/util.py", line 146, in async_update
result = parse_data(
File "/usr/local/lib/python3.8/site-packages/buienradar/buienradar.py", line 37, in parse_data
return parse_json_data(content, raincontent,
File "/usr/local/lib/python3.8/site-packages/buienradar/buienradar_json.py", line 306, in parse_json_data
data = __parse_precipfc_data(raincontent, timeframe)
File "/usr/local/lib/python3.8/site-packages/buienradar/buienradar_json.py", line 574, in __parse_precipfc_data
mmu = 10**(float((int(val) - 109)) / 32)
ValueError: invalid literal for int() with base 10: '86,6329598612474'

Additional information

No response

@probot-home-assistant
Copy link

buienradar documentation
buienradar source
(message by IssueLinks)

@probot-home-assistant
Copy link

Hey there @mjj4791, @ties, @RobBie1221, mind taking a look at this issue as it has been labeled with an integration (buienradar) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)

@babananana
Copy link

This issue sits in python-buienradar. An issue and PR has already been posted on the python-buienradar github.
Issue: mjj4791/python-buienradar#12
PR: mjj4791/python-buienradar#13

Danielhiversen pushed a commit that referenced this issue Nov 28, 2021
* Update buienradar to 1.0.5

should fix #60200

* Update requirements_all.txt

* Update requirements_test_all.txt
@github-actions github-actions bot locked and limited conversation to collaborators Dec 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants