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

[NL] Fix HassGetWeather #2901

Merged
merged 1 commit into from
Jan 22, 2025
Merged

[NL] Fix HassGetWeather #2901

merged 1 commit into from
Jan 22, 2025

Conversation

TheFes
Copy link
Contributor

@TheFes TheFes commented Jan 22, 2025

After getting some reports that HassGetWeather didn't return the current state, I did some testing on my local instance.

Apparantly state.state already returns the translated weather state for the weather entity, so the template using the mapping didn't return anything (as it expects the original untranslated entity state).

This way it will return a weather condition, and not only the temperature.

Copy link
Member

@frenck frenck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @TheFes 👍

../Frenck

@frenck frenck merged commit e0fbbbf into main Jan 22, 2025
2 checks passed
@frenck frenck deleted the TheFes-20250122-fix_HassGetWeather branch January 22, 2025 20:06
@andreasbrett
Copy link
Contributor

@TheFes
Copy link
Contributor Author

TheFes commented Jan 24, 2025

@andreasbrett so, if I understand correctly, I should revert this change?

@andreasbrett
Copy link
Contributor

Yes, the linked PR will bring us untranslated states finally.

TheFes added a commit that referenced this pull request Jan 24, 2025
frenck pushed a commit that referenced this pull request Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants