mirror of
https://github.com/esphome/esphome-docs.git
synced 2024-09-24 03:43:08 +02:00
Document device class support for Switch (#1853)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
parent
7fd533fe17
commit
71244baaf5
@ -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 <config-mqtt-component>`.
|
||||
|
||||
.. _switch-toggle_action:
|
||||
|
Loading…
Reference in New Issue
Block a user