mirror of
https://github.com/esphome/esphome.git
synced 2025-09-03 20:02:22 +01:00
Button device class (#2835)
This commit is contained in:
@@ -865,7 +865,6 @@ DEVICE_CLASS_SAFETY = "safety"
|
||||
DEVICE_CLASS_SMOKE = "smoke"
|
||||
DEVICE_CLASS_SOUND = "sound"
|
||||
DEVICE_CLASS_TAMPER = "tamper"
|
||||
DEVICE_CLASS_UPDATE = "update"
|
||||
DEVICE_CLASS_VIBRATION = "vibration"
|
||||
DEVICE_CLASS_WINDOW = "window"
|
||||
# device classes of both binary_sensor and sensor component
|
||||
@@ -897,6 +896,11 @@ DEVICE_CLASS_TEMPERATURE = "temperature"
|
||||
DEVICE_CLASS_TIMESTAMP = "timestamp"
|
||||
DEVICE_CLASS_VOLATILE_ORGANIC_COMPOUNDS = "volatile_organic_compounds"
|
||||
DEVICE_CLASS_VOLTAGE = "voltage"
|
||||
# device classes of both binary_sensor and button component
|
||||
DEVICE_CLASS_UPDATE = "update"
|
||||
# device classes of button component
|
||||
DEVICE_CLASS_RESTART = "restart"
|
||||
|
||||
|
||||
# state classes
|
||||
STATE_CLASS_NONE = ""
|
||||
|
Reference in New Issue
Block a user