Update device classes for binary sensors (#2703)

This commit is contained in:
lcavalli 2021-11-12 01:17:10 +01:00 committed by Jesse Hills
parent 62c3f301e7
commit b526155cce
No known key found for this signature in database
GPG key ID: BEAAE804EFD8E83A
2 changed files with 6 additions and 3 deletions

View file

@ -44,10 +44,11 @@ from esphome.const import (
DEVICE_CLASS_POWER, DEVICE_CLASS_POWER,
DEVICE_CLASS_PRESENCE, DEVICE_CLASS_PRESENCE,
DEVICE_CLASS_PROBLEM, DEVICE_CLASS_PROBLEM,
DEVICE_CLASS_RUNNING,
DEVICE_CLASS_SAFETY, DEVICE_CLASS_SAFETY,
DEVICE_CLASS_SMOKE, DEVICE_CLASS_SMOKE,
DEVICE_CLASS_SOUND, DEVICE_CLASS_SOUND,
DEVICE_CLASS_UPDATE, DEVICE_CLASS_TAMPER,
DEVICE_CLASS_VIBRATION, DEVICE_CLASS_VIBRATION,
DEVICE_CLASS_WINDOW, DEVICE_CLASS_WINDOW,
) )
@ -76,10 +77,11 @@ DEVICE_CLASSES = [
DEVICE_CLASS_POWER, DEVICE_CLASS_POWER,
DEVICE_CLASS_PRESENCE, DEVICE_CLASS_PRESENCE,
DEVICE_CLASS_PROBLEM, DEVICE_CLASS_PROBLEM,
DEVICE_CLASS_RUNNING,
DEVICE_CLASS_SAFETY, DEVICE_CLASS_SAFETY,
DEVICE_CLASS_SMOKE, DEVICE_CLASS_SMOKE,
DEVICE_CLASS_SOUND, DEVICE_CLASS_SOUND,
DEVICE_CLASS_UPDATE, DEVICE_CLASS_TAMPER,
DEVICE_CLASS_VIBRATION, DEVICE_CLASS_VIBRATION,
DEVICE_CLASS_WINDOW, DEVICE_CLASS_WINDOW,
] ]

View file

@ -878,10 +878,11 @@ DEVICE_CLASS_OPENING = "opening"
DEVICE_CLASS_PLUG = "plug" DEVICE_CLASS_PLUG = "plug"
DEVICE_CLASS_PRESENCE = "presence" DEVICE_CLASS_PRESENCE = "presence"
DEVICE_CLASS_PROBLEM = "problem" DEVICE_CLASS_PROBLEM = "problem"
DEVICE_CLASS_RUNNING = "running"
DEVICE_CLASS_SAFETY = "safety" DEVICE_CLASS_SAFETY = "safety"
DEVICE_CLASS_SMOKE = "smoke" DEVICE_CLASS_SMOKE = "smoke"
DEVICE_CLASS_SOUND = "sound" DEVICE_CLASS_SOUND = "sound"
DEVICE_CLASS_UPDATE = "update" DEVICE_CLASS_TAMPER = "tamper"
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