Add EntityFeature enum to Climate (#69077)
This commit is contained in:
parent
4c7e1fe060
commit
8fc55b71c5
5 changed files with 86 additions and 45 deletions
|
@ -41,9 +41,19 @@ def calls(hass):
|
|||
"set_state,features_reg,features_state,expected_condition_types",
|
||||
[
|
||||
(False, 0, 0, ["is_hvac_mode"]),
|
||||
(False, const.SUPPORT_PRESET_MODE, 0, ["is_hvac_mode", "is_preset_mode"]),
|
||||
(
|
||||
False,
|
||||
const.ClimateEntityFeature.PRESET_MODE,
|
||||
0,
|
||||
["is_hvac_mode", "is_preset_mode"],
|
||||
),
|
||||
(True, 0, 0, ["is_hvac_mode"]),
|
||||
(True, 0, const.SUPPORT_PRESET_MODE, ["is_hvac_mode", "is_preset_mode"]),
|
||||
(
|
||||
True,
|
||||
0,
|
||||
const.ClimateEntityFeature.PRESET_MODE,
|
||||
["is_hvac_mode", "is_preset_mode"],
|
||||
),
|
||||
],
|
||||
)
|
||||
async def test_get_conditions(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue