mirror of
https://github.com/esphome/esphome.git
synced 2025-09-04 20:32:21 +01:00
Add device class support to Switch (#3012)
Co-authored-by: Oxan van Leeuwen <oxan@oxanvanleeuwen.nl>
This commit is contained in:
@@ -920,6 +920,9 @@ DEVICE_CLASS_VOLTAGE = "voltage"
|
||||
DEVICE_CLASS_UPDATE = "update"
|
||||
# device classes of button component
|
||||
DEVICE_CLASS_RESTART = "restart"
|
||||
# device classes of switch component
|
||||
DEVICE_CLASS_OUTLET = "outlet"
|
||||
DEVICE_CLASS_SWITCH = "switch"
|
||||
|
||||
|
||||
# state classes
|
||||
|
Reference in New Issue
Block a user