mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-23 17:26:29 +00:00
ignore button
This commit is contained in:
parent
4b5b2197f1
commit
383a21f094
@ -12,6 +12,4 @@ the Supervisor to the Configuration panel, starting with Home Assistant Core 202
|
|||||||
All integrations can now provide an update platform (`update.py`) to show and
|
All integrations can now provide an update platform (`update.py`) to show and
|
||||||
perform updates.
|
perform updates.
|
||||||
|
|
||||||
Previously we had the `update` device class for the [button entity](/docs/core/entity/button), this is now considered deprecated and you should move to the update platform instead.
|
|
||||||
|
|
||||||
For more details on how to implement the update platform in your integration have a look at the [update platform documentation](/docs/core/update_platform)
|
For more details on how to implement the update platform in your integration have a look at the [update platform documentation](/docs/core/update_platform)
|
||||||
|
@ -9,6 +9,7 @@ It can be compared to a real live momentary switch, push-button, or some other f
|
|||||||
A switch button entity is derived from the [`homeassistant.components.button.ButtonEntity`](https://github.com/home-assistant/core/blob/dev/homeassistant/components/button/__init__.py),
|
A switch button entity is derived from the [`homeassistant.components.button.ButtonEntity`](https://github.com/home-assistant/core/blob/dev/homeassistant/components/button/__init__.py),
|
||||||
and can be helpful for controlling device features like (but not limited to):
|
and can be helpful for controlling device features like (but not limited to):
|
||||||
|
|
||||||
|
- Upgrading firmware
|
||||||
- Reboot/Restart a device
|
- Reboot/Restart a device
|
||||||
- Brew a cup of coffee
|
- Brew a cup of coffee
|
||||||
- Reset something (like a counter, filter usage)
|
- Reset something (like a counter, filter usage)
|
||||||
@ -46,4 +47,4 @@ Optionally specifies what type of entity it is. It will possibly map to Google d
|
|||||||
| Value | Description
|
| Value | Description
|
||||||
| ----- | -----------
|
| ----- | -----------
|
||||||
| restart | The button entity restarts the device.
|
| restart | The button entity restarts the device.
|
||||||
| update | The button entity updates the software of the device. (This device_class is deprecated and you should implement an [update platform](/docs/core/update_platform) instead)
|
| update | The button entity updates the software of the device.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user