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

Weather condition "_" can't be mapped #149

Closed
1 task done
haaino opened this issue May 24, 2024 · 3 comments · Fixed by #151
Closed
1 task done

Weather condition "_" can't be mapped #149

haaino opened this issue May 24, 2024 · 3 comments · Fixed by #151
Labels
bug Something isn't working

Comments

@haaino
Copy link

haaino commented May 24, 2024

Did you read the instructions?

The problem

I noticed a '_' in the condition field

Integration version

2.1.0

Home Assistant version

HA 2024.5.3

Python version

3.12

Home Assistant log

This error originated from a custom integration.

Logger: custom_components.knmi
Source: custom_components/knmi/weather.py:114
integration: KNMI (documentation, issues)
First occurred: 09:21:05 (81 occurrences)
Last logged: 11:00:35

Weather condition "_" can't be mapped, please raise a bug

Diagnostics

No response

Additional information

No response

@haaino haaino added the bug Something isn't working label May 24, 2024
@golles
Copy link
Owner

golles commented May 24, 2024

Please provide the logs from the log file and add diagnostics so I can have a look what is going on

@haaino
Copy link
Author

haaino commented May 24, 2024

Unfortunately for the issue, the issue has resolved itself. Now the condition field is filled with text again.

The content of the log file is in the issue description, but I do not have the diagnostics data. I do not know whether or not I can still retrieve this info somewhere else?

The only thing I see is:"2024-05-24 09:24:05.227 ERROR (MainThread) [custom_components.knmi] Weather condition "_" can't be mapped, please raise a bug"

When it happens again, I will try to gather as much info as possible.

@golles
Copy link
Owner

golles commented May 24, 2024

Now I think about it, _ or - is usually meaning that the data is not known, I will add it to that function.

@golles golles linked a pull request May 25, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants