mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
Make service field filter parameters exclusive (#90728)
This commit is contained in:
parent
d4d77d9395
commit
59511cc3f7
@ -34,10 +34,10 @@ FIELD_SCHEMA = vol.Schema(
|
||||
vol.Optional("advanced"): bool,
|
||||
vol.Optional(CONF_SELECTOR): selector.validate_selector,
|
||||
vol.Optional("filter"): {
|
||||
vol.Optional("attribute"): {
|
||||
vol.Exclusive("attribute", "field_filter"): {
|
||||
vol.Required(str): [vol.All(str, service.validate_attribute_option)],
|
||||
},
|
||||
vol.Optional("supported_features"): [
|
||||
vol.Exclusive("supported_features", "field_filter"): [
|
||||
vol.All(str, service.validate_supported_feature)
|
||||
],
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user