mirror of
https://github.com/home-assistant/core.git
synced 2025-07-29 18:28:14 +02:00
Make service field filter parameters exclusive (#90728)
This commit is contained in:
@ -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)
|
||||
],
|
||||
},
|
||||
|
Reference in New Issue
Block a user