Add EntityFeature enum to Climate (#69077)

This commit is contained in:
Franck Nijhof 2022-04-01 18:41:49 +02:00 committed by GitHub
parent 4c7e1fe060
commit 8fc55b71c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 86 additions and 45 deletions

View file

@ -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(