Set zwave_js climate precision to tenths for F #48133
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Breaking change
Zwave_js climate devices that report their temperature in Fahrenheit will now report in tenth precision instead of whole precision, when the device supports it. Previously, when those devices reported a temperature of, for example, 67.6F it would be rounded and reported in whole precision as 68F. Those devices will now report the temperature with tenth precision, thus 67.6F. This means that if you currently have automation that depends on the temperature reported by these devices you may have to adjust their functionality to work properly with how the temperature is now being reported.
Proposed change
This is a change to the temperature precision of the zwave_js climate entities (or thermostats) that report their temperature in Fahrenheit. Currently, these entities report their temperature with whole precision. Meaning that, if the temperature reported by the climate/thermostat device is 67.6F the entity will round it and report it as 68F. This change will make it so that the entity reports more accurately in tenth precision, so that it will report 67.6F instead of 68F, which is what the climate/thermostat device reported.
This change does not affect the target_temperature_step. Meaning it won't change the precision at which the climate/thermostat entity's temperature is set. That will continue to function as it does now. This change only affects how the temperature is reported and displayed.
Please note that this change does not affect those climate/thermostat entities/devices that report in Celsius, as they already use tenth precision.
Also note that, thermostat devices that already report the temperature in whole precision will continue to do so, unaffected by this change. Meaning that if a thermostat only reports the temperature in whole precision, the climate/thermostat entity will still correctly display the temperature.
Type of change
Additional information
Checklist
black --fast homeassistant tests
)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest
.requirements_all.txt
.Updated by running
python3 -m script.gen_requirements_all
..coveragerc
.The integration reached or maintains the following Integration Quality Scale:
To help with the load of incoming pull requests: