Fallback to current temperature unit for zwave_js climate (#48347)
* Fallback to current temperature unit for zwave_js climate * don't use unit for N/A setpoint * update comment * add tests
This commit is contained in:
parent
2ff94c8ed9
commit
08db248983
5 changed files with 1873 additions and 2 deletions
|
@ -578,3 +578,20 @@ async def test_preset_and_no_setpoint(
|
|||
assert args["value"] == 1
|
||||
|
||||
client.async_send_command.reset_mock()
|
||||
|
||||
|
||||
async def test_temp_unit_fix(
|
||||
hass,
|
||||
client,
|
||||
climate_radio_thermostat_ct101_multiple_temp_units,
|
||||
climate_radio_thermostat_ct100_mode_and_setpoint_on_different_endpoints,
|
||||
integration,
|
||||
):
|
||||
"""Test temperaturee unit fix."""
|
||||
state = hass.states.get("climate.thermostat")
|
||||
assert state
|
||||
assert state.attributes["current_temperature"] == 18.3
|
||||
|
||||
state = hass.states.get("climate.z_wave_thermostat")
|
||||
assert state
|
||||
assert state.attributes["current_temperature"] == 21.1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue