1
0
mirror of https://github.com/home-assistant/core.git synced 2026-04-17 15:44:52 +01:00

Use state selector for climate service mode fields (#166486)

This commit is contained in:
Paul Bottein
2026-03-25 16:43:41 +01:00
committed by GitHub
parent 338836cba2
commit b522db1daf
2 changed files with 12 additions and 25 deletions

View File

@@ -11,7 +11,8 @@ set_preset_mode:
required: true
example: "away"
selector:
text:
state:
attribute: preset_mode
set_temperature:
target:
@@ -55,16 +56,10 @@ set_temperature:
mode: box
hvac_mode:
selector:
select:
options:
- "off"
- "auto"
- "cool"
- "dry"
- "fan_only"
- "heat_cool"
- "heat"
translation_key: hvac_mode
state:
hide_states:
- unavailable
- unknown
set_humidity:
target:
entity:
@@ -91,7 +86,8 @@ set_fan_mode:
required: true
example: "low"
selector:
text:
state:
attribute: fan_mode
set_hvac_mode:
target:
@@ -115,7 +111,8 @@ set_swing_mode:
required: true
example: "on"
selector:
text:
state:
attribute: swing_mode
set_swing_horizontal_mode:
target:
@@ -128,7 +125,8 @@ set_swing_horizontal_mode:
required: true
example: "on"
selector:
text:
state:
attribute: swing_horizontal_mode
turn_on:
target:

View File

@@ -281,17 +281,6 @@
"any": "Any"
}
},
"hvac_mode": {
"options": {
"auto": "[%key:common::state::auto%]",
"cool": "Cool",
"dry": "Dry",
"fan_only": "Fan only",
"heat": "Heat",
"heat_cool": "Heat/cool",
"off": "[%key:common::state::off%]"
}
},
"number_or_entity": {
"choices": {
"entity": "Entity",