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

DWD: Fix entity type detection when using translated enity_id #223

Merged
merged 2 commits into from
Oct 16, 2023

Conversation

MrBartusek
Copy link
Owner

@MrBartusek MrBartusek commented Oct 16, 2023

Fixes: #214

This PR fixes an issue with DWD integration that caused the getEntityKind function to fail when using translated entity_id and friendly_name to German. The function was expecting sensor.dwd_weather_warnings_current_warning_level and got sensor.dwd_weather_warnings_aktuelle_warnstufe since upstream integration was updated.

The solution here is to support both English and German translation keys. It covers 99% of use cases but it's not an ideal way to do this.

@MrBartusek MrBartusek added bug Something isn't working integration: dwd labels Oct 16, 2023
@MrBartusek MrBartusek linked an issue Oct 16, 2023 that may be closed by this pull request
@MrBartusek MrBartusek closed this Oct 16, 2023
@MrBartusek MrBartusek reopened this Oct 16, 2023
@MrBartusek MrBartusek merged commit a05a52d into master Oct 16, 2023
8 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working integration: dwd
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DWD selected integration doesn't match selected entity
1 participant