home-assistant/home-assistant#18645: revert heat-cool -> auto change
parent
d8f6331318
commit
0454a5fa3f
|
@ -517,7 +517,7 @@ class TemperatureSettingTrait(_Trait):
|
|||
climate.STATE_HEAT: 'heat',
|
||||
climate.STATE_COOL: 'cool',
|
||||
climate.STATE_OFF: 'off',
|
||||
climate.STATE_AUTO: 'auto',
|
||||
climate.STATE_AUTO: 'heatcool',
|
||||
climate.STATE_FAN_ONLY: 'fan-only',
|
||||
climate.STATE_DRY: 'dry',
|
||||
climate.STATE_ECO: 'eco'
|
||||
|
|
|
@ -223,7 +223,7 @@ DEMO_DEVICES = [{
|
|||
'type': 'action.devices.types.THERMOSTAT',
|
||||
'willReportState': False,
|
||||
'attributes': {
|
||||
'availableThermostatModes': 'heat,cool,auto,off',
|
||||
'availableThermostatModes': 'heat,cool,heatcool,off',
|
||||
'thermostatTemperatureUnit': 'C',
|
||||
},
|
||||
}, {
|
||||
|
|
|
@ -214,7 +214,7 @@ def test_query_climate_request(hass_fixture, assistant_client, auth_header):
|
|||
'online': True,
|
||||
'thermostatTemperatureSetpointHigh': 24,
|
||||
'thermostatTemperatureAmbient': 23,
|
||||
'thermostatMode': 'auto',
|
||||
'thermostatMode': 'heatcool',
|
||||
'thermostatTemperatureSetpointLow': 21
|
||||
}
|
||||
assert devices['climate.hvac'] == {
|
||||
|
@ -271,7 +271,7 @@ def test_query_climate_request_f(hass_fixture, assistant_client, auth_header):
|
|||
'online': True,
|
||||
'thermostatTemperatureSetpointHigh': -4.4,
|
||||
'thermostatTemperatureAmbient': -5,
|
||||
'thermostatMode': 'auto',
|
||||
'thermostatMode': 'heatcool',
|
||||
'thermostatTemperatureSetpointLow': -6.1,
|
||||
}
|
||||
assert devices['climate.hvac'] == {
|
||||
|
|
|
@ -679,11 +679,11 @@ async def test_temperature_setting_climate_range(hass):
|
|||
climate.ATTR_MAX_TEMP: 80
|
||||
}), BASIC_CONFIG)
|
||||
assert trt.sync_attributes() == {
|
||||
'availableThermostatModes': 'off,cool,heat,auto',
|
||||
'availableThermostatModes': 'off,cool,heat,heatcool',
|
||||
'thermostatTemperatureUnit': 'F',
|
||||
}
|
||||
assert trt.query_attributes() == {
|
||||
'thermostatMode': 'auto',
|
||||
'thermostatMode': 'heatcool',
|
||||
'thermostatTemperatureAmbient': 21.1,
|
||||
'thermostatHumidityAmbient': 25,
|
||||
'thermostatTemperatureSetpointLow': 18.3,
|
||||
|
@ -709,7 +709,7 @@ async def test_temperature_setting_climate_range(hass):
|
|||
calls = async_mock_service(
|
||||
hass, climate.DOMAIN, climate.SERVICE_SET_OPERATION_MODE)
|
||||
await trt.execute(trait.COMMAND_THERMOSTAT_SET_MODE, {
|
||||
'thermostatMode': 'auto',
|
||||
'thermostatMode': 'heatcool',
|
||||
})
|
||||
assert len(calls) == 1
|
||||
assert calls[0].data == {
|
||||
|
|
Loading…
Reference in New Issue