Fix min/max temp and humidity for homekit_controller climate (#23421)

* Fix min/max temp and humidity for homekit_controller climate.

* Fix typo
This commit is contained in:
Jc2k
2019-04-30 23:08:31 +01:00
committed by Martin Hjelmare
parent b0843f4a38
commit 1c4367e5a9
4 changed files with 59 additions and 1 deletions

View File

@@ -138,6 +138,8 @@ async def test_climate_read_thermostat_state(hass, utcnow):
assert state.state == 'heat'
assert state.attributes['current_temperature'] == 19
assert state.attributes['current_humidity'] == 50
assert state.attributes['min_temp'] == 7
assert state.attributes['max_temp'] == 35
# Simulate that cooling is on
helper.characteristics[TEMPERATURE_CURRENT].value = 21