From cb6b00c340e8d58f2e2e1c89cebc4be3b897f2f1 Mon Sep 17 00:00:00 2001 From: Chris Browet Date: Mon, 29 Nov 2021 14:02:20 +0100 Subject: [PATCH] Add device_class to MQTT switch (#20114) --- source/_integrations/switch.mqtt.markdown | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/_integrations/switch.mqtt.markdown b/source/_integrations/switch.mqtt.markdown index f538d59429f..ca4a7738940 100644 --- a/source/_integrations/switch.mqtt.markdown +++ b/source/_integrations/switch.mqtt.markdown @@ -101,6 +101,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/switch/#device-class) of the switch 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