From 35ab5280e12bfb07eea6d5b7b6faeee08e7c1140 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Thu, 2 Dec 2021 10:22:55 +0100 Subject: [PATCH] Add button device classes to MQTT (#20518) --- source/_integrations/button.mqtt.markdown | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/_integrations/button.mqtt.markdown b/source/_integrations/button.mqtt.markdown index 0fd64e97a24..599058e785b 100644 --- a/source/_integrations/button.mqtt.markdown +++ b/source/_integrations/button.mqtt.markdown @@ -93,6 +93,11 @@ device: description: 'Identifier of a device that routes messages between this device and Home Assistant. Examples of such devices are hubs, or parent devices of a sub-device. This is used to show device topology in Home Assistant.' required: false type: string +device_class: + description: The [type/class](/integrations/button/#device-class) of the button to set the icon in the frontend. + required: false + type: device_class + default: None enabled_by_default: description: Flag which defines if the entity should be enabled when first added. required: false