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

fix: fix temperature native_unit_of_measurement #2521

Merged
merged 5 commits into from
Sep 14, 2024

Conversation

danielbrunt57
Copy link
Collaborator

Fixes the 18 month old issue Amazon Thermostat reports incorrect temperature #1890

Alexa temperature sensors were being hardcoded to UnitOfTemperature.CELSIUS thus preventing using sensors with FAHRENHEIT as their native unit. These changes now correctly retrieve and use scale from the "Alexa.TemperatureSensor", "temperature" JSON string that Amazon issues in data refreshes: parse_temperature_from_coordinator: {'value': 24.1, 'scale': 'CELSIUS'}

@alandtse alandtse changed the title fix: utilize temperature sensor native_unit_of_measurement fix: fix temperature native_unit_of_measurement Sep 14, 2024
@alandtse alandtse merged commit e55b198 into alandtse:dev Sep 14, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants