mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 22:27:07 +00:00
Map auto to heat_cool for thermostat in SmartThings (#145098)
This commit is contained in:
parent
68c3d5a159
commit
cb84e55c34
@ -31,7 +31,7 @@ from .entity import SmartThingsEntity
|
|||||||
|
|
||||||
ATTR_OPERATION_STATE = "operation_state"
|
ATTR_OPERATION_STATE = "operation_state"
|
||||||
MODE_TO_STATE = {
|
MODE_TO_STATE = {
|
||||||
"auto": HVACMode.AUTO,
|
"auto": HVACMode.HEAT_COOL,
|
||||||
"cool": HVACMode.COOL,
|
"cool": HVACMode.COOL,
|
||||||
"eco": HVACMode.AUTO,
|
"eco": HVACMode.AUTO,
|
||||||
"rush hour": HVACMode.AUTO,
|
"rush hour": HVACMode.AUTO,
|
||||||
@ -40,7 +40,7 @@ MODE_TO_STATE = {
|
|||||||
"off": HVACMode.OFF,
|
"off": HVACMode.OFF,
|
||||||
}
|
}
|
||||||
STATE_TO_MODE = {
|
STATE_TO_MODE = {
|
||||||
HVACMode.AUTO: "auto",
|
HVACMode.HEAT_COOL: "auto",
|
||||||
HVACMode.COOL: "cool",
|
HVACMode.COOL: "cool",
|
||||||
HVACMode.HEAT: "heat",
|
HVACMode.HEAT: "heat",
|
||||||
HVACMode.OFF: "off",
|
HVACMode.OFF: "off",
|
||||||
|
@ -541,7 +541,7 @@
|
|||||||
'hvac_modes': list([
|
'hvac_modes': list([
|
||||||
<HVACMode.OFF: 'off'>,
|
<HVACMode.OFF: 'off'>,
|
||||||
<HVACMode.COOL: 'cool'>,
|
<HVACMode.COOL: 'cool'>,
|
||||||
<HVACMode.AUTO: 'auto'>,
|
<HVACMode.HEAT_COOL: 'heat_cool'>,
|
||||||
]),
|
]),
|
||||||
'max_temp': 35.0,
|
'max_temp': 35.0,
|
||||||
'min_temp': 7.0,
|
'min_temp': 7.0,
|
||||||
@ -589,7 +589,7 @@
|
|||||||
'hvac_modes': list([
|
'hvac_modes': list([
|
||||||
<HVACMode.OFF: 'off'>,
|
<HVACMode.OFF: 'off'>,
|
||||||
<HVACMode.COOL: 'cool'>,
|
<HVACMode.COOL: 'cool'>,
|
||||||
<HVACMode.AUTO: 'auto'>,
|
<HVACMode.HEAT_COOL: 'heat_cool'>,
|
||||||
]),
|
]),
|
||||||
'max_temp': 35.0,
|
'max_temp': 35.0,
|
||||||
'min_temp': 7.0,
|
'min_temp': 7.0,
|
||||||
|
@ -625,7 +625,7 @@ async def test_thermostat_set_hvac_mode(
|
|||||||
await hass.services.async_call(
|
await hass.services.async_call(
|
||||||
CLIMATE_DOMAIN,
|
CLIMATE_DOMAIN,
|
||||||
SERVICE_SET_HVAC_MODE,
|
SERVICE_SET_HVAC_MODE,
|
||||||
{ATTR_ENTITY_ID: "climate.asd", ATTR_HVAC_MODE: HVACMode.AUTO},
|
{ATTR_ENTITY_ID: "climate.asd", ATTR_HVAC_MODE: HVACMode.HEAT_COOL},
|
||||||
blocking=True,
|
blocking=True,
|
||||||
)
|
)
|
||||||
devices.execute_device_command.assert_called_once_with(
|
devices.execute_device_command.assert_called_once_with(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user