home-assistant/home-assistant#18645: revert heat-cool -> auto change

pull/19215/head
phnx 2018-12-07 10:00:56 -05:00 committed by Paulus Schoutsen
parent d8f6331318
commit 0454a5fa3f
4 changed files with 7 additions and 7 deletions

View File

@ -517,7 +517,7 @@ class TemperatureSettingTrait(_Trait):
climate.STATE_HEAT: 'heat', climate.STATE_HEAT: 'heat',
climate.STATE_COOL: 'cool', climate.STATE_COOL: 'cool',
climate.STATE_OFF: 'off', climate.STATE_OFF: 'off',
climate.STATE_AUTO: 'auto', climate.STATE_AUTO: 'heatcool',
climate.STATE_FAN_ONLY: 'fan-only', climate.STATE_FAN_ONLY: 'fan-only',
climate.STATE_DRY: 'dry', climate.STATE_DRY: 'dry',
climate.STATE_ECO: 'eco' climate.STATE_ECO: 'eco'

View File

@ -223,7 +223,7 @@ DEMO_DEVICES = [{
'type': 'action.devices.types.THERMOSTAT', 'type': 'action.devices.types.THERMOSTAT',
'willReportState': False, 'willReportState': False,
'attributes': { 'attributes': {
'availableThermostatModes': 'heat,cool,auto,off', 'availableThermostatModes': 'heat,cool,heatcool,off',
'thermostatTemperatureUnit': 'C', 'thermostatTemperatureUnit': 'C',
}, },
}, { }, {

View File

@ -214,7 +214,7 @@ def test_query_climate_request(hass_fixture, assistant_client, auth_header):
'online': True, 'online': True,
'thermostatTemperatureSetpointHigh': 24, 'thermostatTemperatureSetpointHigh': 24,
'thermostatTemperatureAmbient': 23, 'thermostatTemperatureAmbient': 23,
'thermostatMode': 'auto', 'thermostatMode': 'heatcool',
'thermostatTemperatureSetpointLow': 21 'thermostatTemperatureSetpointLow': 21
} }
assert devices['climate.hvac'] == { assert devices['climate.hvac'] == {
@ -271,7 +271,7 @@ def test_query_climate_request_f(hass_fixture, assistant_client, auth_header):
'online': True, 'online': True,
'thermostatTemperatureSetpointHigh': -4.4, 'thermostatTemperatureSetpointHigh': -4.4,
'thermostatTemperatureAmbient': -5, 'thermostatTemperatureAmbient': -5,
'thermostatMode': 'auto', 'thermostatMode': 'heatcool',
'thermostatTemperatureSetpointLow': -6.1, 'thermostatTemperatureSetpointLow': -6.1,
} }
assert devices['climate.hvac'] == { assert devices['climate.hvac'] == {

View File

@ -679,11 +679,11 @@ async def test_temperature_setting_climate_range(hass):
climate.ATTR_MAX_TEMP: 80 climate.ATTR_MAX_TEMP: 80
}), BASIC_CONFIG) }), BASIC_CONFIG)
assert trt.sync_attributes() == { assert trt.sync_attributes() == {
'availableThermostatModes': 'off,cool,heat,auto', 'availableThermostatModes': 'off,cool,heat,heatcool',
'thermostatTemperatureUnit': 'F', 'thermostatTemperatureUnit': 'F',
} }
assert trt.query_attributes() == { assert trt.query_attributes() == {
'thermostatMode': 'auto', 'thermostatMode': 'heatcool',
'thermostatTemperatureAmbient': 21.1, 'thermostatTemperatureAmbient': 21.1,
'thermostatHumidityAmbient': 25, 'thermostatHumidityAmbient': 25,
'thermostatTemperatureSetpointLow': 18.3, 'thermostatTemperatureSetpointLow': 18.3,
@ -709,7 +709,7 @@ async def test_temperature_setting_climate_range(hass):
calls = async_mock_service( calls = async_mock_service(
hass, climate.DOMAIN, climate.SERVICE_SET_OPERATION_MODE) hass, climate.DOMAIN, climate.SERVICE_SET_OPERATION_MODE)
await trt.execute(trait.COMMAND_THERMOSTAT_SET_MODE, { await trt.execute(trait.COMMAND_THERMOSTAT_SET_MODE, {
'thermostatMode': 'auto', 'thermostatMode': 'heatcool',
}) })
assert len(calls) == 1 assert len(calls) == 1
assert calls[0].data == { assert calls[0].data == {