Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add filters to climate and light service descriptions #86162

Merged
merged 8 commits into from
Mar 16, 2023
Merged
Prev Previous commit
Next Next commit
Adjust test
  • Loading branch information
emontnemery committed Mar 14, 2023
commit 218f20f2950bc2be38456f97c0140b4eb504045c
6 changes: 3 additions & 3 deletions tests/helpers/test_selector.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ def test_device_selector_schema(schema, valid_selections, invalid_selections) ->
(
{
"filter": [
{"supported_features": ["LightEntityFeature.EFFECT"]},
{"supported_features": ["light.LightEntityFeature.EFFECT"]},
]
},
("light.abc123", "blah.blah", FAKE_UUID),
Expand Down Expand Up @@ -258,9 +258,9 @@ def test_entity_selector_schema(schema, valid_selections, invalid_selections) ->
# Invalid feature
{"filter": [{"supported_features": ["blah"]}]},
# Unknown feature enum
{"filter": [{"supported_features": ["FooEntityFeature.blah"]}]},
{"filter": [{"supported_features": ["blah.FooEntityFeature.blah"]}]},
# Unknown feature enum member
{"filter": [{"supported_features": ["LightEntityFeature.blah"]}]},
{"filter": [{"supported_features": ["light.LightEntityFeature.blah"]}]},
),
)
def test_entity_selector_schema_error(schema) -> None:
Expand Down