From 71244baaf5d2e5add0cdd3c733ca187026ec6a9e Mon Sep 17 00:00:00 2001 From: Oxan van Leeuwen Date: Thu, 3 Feb 2022 21:04:54 +0100 Subject: [PATCH] Document device class support for Switch (#1853) Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com> --- components/switch/index.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/switch/index.rst b/components/switch/index.rst index 531c57623..4fe558fa6 100644 --- a/components/switch/index.rst +++ b/components/switch/index.rst @@ -42,6 +42,9 @@ Configuration variables: See https://developers.home-assistant.io/docs/core/entity/#generic-properties for a list of available options. Requires Home Assistant 2021.11 or newer. Set to ``""`` to remove the default entity category. +- **device_class** (*Optional*, string): The device class for the switch. + See https://developers.home-assistant.io/docs/core/entity/switch/#available-device-classes + for a list of available options. Requires Home Assistant 2022.3 or newer. - If MQTT enabled, All other options from :ref:`MQTT Component `. .. _switch-toggle_action: