Add button device classes (#20519)

This commit is contained in:
Franck Nijhof 2021-12-02 10:23:34 +01:00 committed by GitHub
parent 35ab5280e1
commit 75e17c0941
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,3 +52,12 @@ This service can be called to trigger a button press for that entity.
target:
entity_id: button.my_button
```
## Device Class
The way these buttons are displayed in the frontend can be modified in the [customize section](/docs/configuration/customizing-devices/).
The following device classes are supported for buttons:
- **None**: Generic button. This is the default and doesn't need to be set.
- **restart**: The button restarts the device.
- **update**: The button updates the software of the device.