Climate validate temperature(s) out of range (#118649)
* Climate temperature out of range * Fix test sensibo * use temp converting for min/max * Fix * Fix mqtt tests * Fix honeywell tests * Fix Balboa tests * Fix whirlpool test * Fix teslemetry test * Fix plugwise test * Fix tplink test * Fix generic thermostat test * Fix modbus test * Fix fritzbox tests * Honewell
This commit is contained in:
parent
ae9e8ca419
commit
a913587eb6
17 changed files with 245 additions and 69 deletions
|
@ -1097,9 +1097,9 @@ async def setup_comp_9(hass: HomeAssistant) -> None:
|
|||
async def test_precision(hass: HomeAssistant) -> None:
|
||||
"""Test that setting precision to tenths works as intended."""
|
||||
hass.config.units = US_CUSTOMARY_SYSTEM
|
||||
await common.async_set_temperature(hass, 23.27)
|
||||
await common.async_set_temperature(hass, 55.27)
|
||||
state = hass.states.get(ENTITY)
|
||||
assert state.attributes.get("temperature") == 23.3
|
||||
assert state.attributes.get("temperature") == 55.3
|
||||
# check that target_temp_step defaults to precision
|
||||
assert state.attributes.get("target_temp_step") == 0.1
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue