From 168946bcd0fea4f0d35739d1f23b48fc59f5b3f6 Mon Sep 17 00:00:00 2001 From: Bram Kragten Date: Wed, 5 Apr 2023 19:48:50 +0200 Subject: [PATCH 1/2] Add docs for supported_features in selectors --- source/_docs/blueprint/selectors.markdown | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/source/_docs/blueprint/selectors.markdown b/source/_docs/blueprint/selectors.markdown index a5de950c420b..fbfad2e0c467 100644 --- a/source/_docs/blueprint/selectors.markdown +++ b/source/_docs/blueprint/selectors.markdown @@ -170,6 +170,12 @@ entity: the selection to. type: [device_class, list] required: false + supported_features: + description: > + Limits the list of areas to areas that have entities with a certain + supported feature, for example, `light.LightEntityFeature.TRANSITION` or `climate.ClimateEntityFeature.TARGET_TEMPERATURE`. Should be a list of features. + type: [supported_feature] + required: false multiple: description: > Allows selecting multiple areas. If set to `true`, the resulting value of @@ -401,12 +407,18 @@ entity: required: false device_class: description: > - Limits the list of entities to entities that have a certain device + Limits the list of devices to devices that have entities with a certain device class(es), for example, `motion` or `window`. Can be either a string with a single device_class, or a list of string device_class to limit the selection to. type: [device_class, list] required: false + supported_features: + description: > + Limits the list of devices to devices that have entities with a certain + supported feature, for example, `light.LightEntityFeature.TRANSITION` or `climate.ClimateEntityFeature.TARGET_TEMPERATURE`. Should be a list of features. + type: [supported_feature] + required: false filter: description: > When filter options are provided, the list of devices is filtered by devices @@ -563,6 +575,12 @@ filter: or a list of string device_class to limit the selection to. type: [device_class, list] required: false + supported_features: + description: > + Limits the list of entities to entities that have a certain + supported feature, for example, `light.LightEntityFeature.TRANSITION` or `climate.ClimateEntityFeature.TARGET_TEMPERATURE`. Should be a list of features. + type: [supported_feature] + required: false multiple: description: > Allows selecting multiple entities. If set to `true`, the resulting value of From 32ddc0ef6edd169c8b11d9c0ff5e43b8b63fa949 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Wed, 5 Apr 2023 19:53:03 +0200 Subject: [PATCH 2/2] Fix CI --- source/_docs/blueprint/selectors.markdown | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/_docs/blueprint/selectors.markdown b/source/_docs/blueprint/selectors.markdown index fbfad2e0c467..2c278121572c 100644 --- a/source/_docs/blueprint/selectors.markdown +++ b/source/_docs/blueprint/selectors.markdown @@ -174,7 +174,7 @@ entity: description: > Limits the list of areas to areas that have entities with a certain supported feature, for example, `light.LightEntityFeature.TRANSITION` or `climate.ClimateEntityFeature.TARGET_TEMPERATURE`. Should be a list of features. - type: [supported_feature] + type: list required: false multiple: description: > @@ -417,7 +417,7 @@ entity: description: > Limits the list of devices to devices that have entities with a certain supported feature, for example, `light.LightEntityFeature.TRANSITION` or `climate.ClimateEntityFeature.TARGET_TEMPERATURE`. Should be a list of features. - type: [supported_feature] + type: list required: false filter: description: > @@ -579,7 +579,7 @@ filter: description: > Limits the list of entities to entities that have a certain supported feature, for example, `light.LightEntityFeature.TRANSITION` or `climate.ClimateEntityFeature.TARGET_TEMPERATURE`. Should be a list of features. - type: [supported_feature] + type: list required: false multiple: description: >