Update documentation for filtering services by supported features (#1834)

This commit is contained in:
Erik Montnemery 2023-07-10 15:08:06 +02:00 committed by GitHub
parent 2d4d6fe0b2
commit c1bd9c3155
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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. |
| `ONLY` | The service doesn't perform any actions and always returns response data. |