Fix Climate device HVAC mode trigger UI (#84930)

* Fix Climate device HVAC mode trigger UI

* Use updated order of test case results
This commit is contained in:
Allen Porter 2023-01-01 17:16:18 -08:00 committed by GitHub
parent 812665cda4
commit 0ae55fb58b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 2 deletions

View file

@ -174,7 +174,10 @@ async def async_get_trigger_capabilities(
if trigger_type == "hvac_mode_changed":
return {
"extra_fields": vol.Schema(
{vol.Optional(CONF_FOR): cv.positive_time_period_dict}
{
vol.Required(state_trigger.CONF_TO): vol.In(const.HVAC_MODES),
vol.Optional(CONF_FOR): cv.positive_time_period_dict,
}
)
}