mirror of
https://github.com/esphome/esphome.git
synced 2024-11-25 08:28:12 +01:00
Re-instate device class update for binary sensors (#2743)
This commit is contained in:
parent
0469e19f54
commit
6c1ef398bb
2 changed files with 3 additions and 0 deletions
|
@ -49,6 +49,7 @@ from esphome.const import (
|
||||||
DEVICE_CLASS_SMOKE,
|
DEVICE_CLASS_SMOKE,
|
||||||
DEVICE_CLASS_SOUND,
|
DEVICE_CLASS_SOUND,
|
||||||
DEVICE_CLASS_TAMPER,
|
DEVICE_CLASS_TAMPER,
|
||||||
|
DEVICE_CLASS_UPDATE,
|
||||||
DEVICE_CLASS_VIBRATION,
|
DEVICE_CLASS_VIBRATION,
|
||||||
DEVICE_CLASS_WINDOW,
|
DEVICE_CLASS_WINDOW,
|
||||||
)
|
)
|
||||||
|
@ -82,6 +83,7 @@ DEVICE_CLASSES = [
|
||||||
DEVICE_CLASS_SMOKE,
|
DEVICE_CLASS_SMOKE,
|
||||||
DEVICE_CLASS_SOUND,
|
DEVICE_CLASS_SOUND,
|
||||||
DEVICE_CLASS_TAMPER,
|
DEVICE_CLASS_TAMPER,
|
||||||
|
DEVICE_CLASS_UPDATE,
|
||||||
DEVICE_CLASS_VIBRATION,
|
DEVICE_CLASS_VIBRATION,
|
||||||
DEVICE_CLASS_WINDOW,
|
DEVICE_CLASS_WINDOW,
|
||||||
]
|
]
|
||||||
|
|
|
@ -863,6 +863,7 @@ DEVICE_CLASS_SAFETY = "safety"
|
||||||
DEVICE_CLASS_SMOKE = "smoke"
|
DEVICE_CLASS_SMOKE = "smoke"
|
||||||
DEVICE_CLASS_SOUND = "sound"
|
DEVICE_CLASS_SOUND = "sound"
|
||||||
DEVICE_CLASS_TAMPER = "tamper"
|
DEVICE_CLASS_TAMPER = "tamper"
|
||||||
|
DEVICE_CLASS_UPDATE = "update"
|
||||||
DEVICE_CLASS_VIBRATION = "vibration"
|
DEVICE_CLASS_VIBRATION = "vibration"
|
||||||
DEVICE_CLASS_WINDOW = "window"
|
DEVICE_CLASS_WINDOW = "window"
|
||||||
# device classes of both binary_sensor and sensor component
|
# device classes of both binary_sensor and sensor component
|
||||||
|
|
Loading…
Reference in a new issue