Skip to content

Change to thermostat card to reflect step_temp on set-temperature#4221

Merged
bramkragten merged 5 commits intohome-assistant:devfrom
bannhead:step_temp_coherence
Nov 25, 2019
Merged

Change to thermostat card to reflect step_temp on set-temperature#4221
bramkragten merged 5 commits intohome-assistant:devfrom
bannhead:step_temp_coherence

Conversation

@bannhead
Copy link
Copy Markdown
Contributor

@bannhead bannhead commented Nov 14, 2019

Reference #4219

This is my proposal to change the graphic aspect of the set temperature when the thermostat works with whole temperature steps.

@bannhead bannhead changed the title changes to new-round-slider Change to thermostat card to reflect step_temp on set-temperature Nov 14, 2019
@kmlucy kmlucy mentioned this pull request Nov 14, 2019
2 tasks
@Molodax
Copy link
Copy Markdown

Molodax commented Nov 14, 2019

I don't think that is is a good idea to show a decimal for current temperature when it is equal to 0 just for sake of "consistency".

Even if thermostat cannot be set using a decimal, e.g. 0.5°C, it doesn't mean that not displaying it in the current temperature is correct.
22°C, 22.5°C and 23°C are three differences in temperature.

@bannhead
Copy link
Copy Markdown
Contributor Author

bannhead commented Nov 14, 2019

My code only impacts set temperature. The thermostat card shows the current temperature step in whole if F and in halves if C, but gives priority to "precision" parameter if supplied by the thermostat.

My only change is to reflect the "target_temperature_step" -used by the slider- to "set temperature".

@bramkragten
Copy link
Copy Markdown
Member

Please rebase this PR

@bramkragten
Copy link
Copy Markdown
Member

Your PR targets the branch new-round-slider this should be dev

@bannhead bannhead changed the base branch from new-round-slider to dev November 20, 2019 10:50
@bramkragten bramkragten merged commit fe93b99 into home-assistant:dev Nov 25, 2019
@bramkragten bramkragten mentioned this pull request Dec 4, 2019
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants