From c1bd9c31555ab003e9a18f9ea752eb6c87485134 Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Mon, 10 Jul 2023 15:08:06 +0200 Subject: [PATCH] Update documentation for filtering services by supported features (#1834) --- docs/dev_101_services.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/dev_101_services.md b/docs/dev_101_services.md index ebb0a574..db51d17b 100644 --- a/docs/dev_101_services.md +++ b/docs/dev_101_services.md @@ -94,6 +94,11 @@ set_speed: # listed supported features. supported_features: - fan.FanEntityFeature.SET_SPEED + # If a service requires more than one supported feature, the item should + # be given as a list of required supported features. For example, if the + # service requires both SET_SPEED and OSCILLATE it would be expressed like this + - - fan.FanEntityFeature.SET_SPEED + - fan.FanEntityFeature.OSCILLATE # Different fields that your service accepts fields: # Key of the field @@ -258,4 +263,4 @@ Service calls are registered with a `SupportsResponse` value to indicate respons | Value | Description | | ---------- | -------------------------------------------- | | `OPTIONAL` | The service performs an action and can optionally return response data. The service should conditionally check the `ServiceCall` property `return_response` to decide whether or not response data should be returned, or `None`. | -| `ONLY` | The service doesn't perform any actions and always returns response data. | \ No newline at end of file +| `ONLY` | The service doesn't perform any actions and always returns response data. |