mirror of
https://github.com/esphome/esphome.git
synced 2024-12-22 13:34:54 +01:00
Synchronise Device Classes from Home Assistant (#5018)
This commit is contained in:
parent
108fabe18f
commit
9a149a7aba
2 changed files with 3 additions and 0 deletions
|
@ -12,6 +12,7 @@ from esphome.const import (
|
|||
CONF_TRIGGER_ID,
|
||||
CONF_MQTT_ID,
|
||||
DEVICE_CLASS_EMPTY,
|
||||
DEVICE_CLASS_IDENTIFY,
|
||||
DEVICE_CLASS_RESTART,
|
||||
DEVICE_CLASS_UPDATE,
|
||||
)
|
||||
|
@ -24,6 +25,7 @@ IS_PLATFORM_COMPONENT = True
|
|||
|
||||
DEVICE_CLASSES = [
|
||||
DEVICE_CLASS_EMPTY,
|
||||
DEVICE_CLASS_IDENTIFY,
|
||||
DEVICE_CLASS_RESTART,
|
||||
DEVICE_CLASS_UPDATE,
|
||||
]
|
||||
|
|
|
@ -968,6 +968,7 @@ DEVICE_CLASS_GAS = "gas"
|
|||
DEVICE_CLASS_GATE = "gate"
|
||||
DEVICE_CLASS_HEAT = "heat"
|
||||
DEVICE_CLASS_HUMIDITY = "humidity"
|
||||
DEVICE_CLASS_IDENTIFY = "identify"
|
||||
DEVICE_CLASS_ILLUMINANCE = "illuminance"
|
||||
DEVICE_CLASS_IRRADIANCE = "irradiance"
|
||||
DEVICE_CLASS_LIGHT = "light"
|
||||
|
|
Loading…
Reference in a new issue