mirror of
https://github.com/esphome/esphome.git
synced 2024-11-29 10:14:13 +01:00
Add sensor monetary device_class (#2083)
This commit is contained in:
parent
f97cfe9916
commit
618cfd9ec5
2 changed files with 3 additions and 0 deletions
|
@ -44,6 +44,7 @@ from esphome.const import (
|
||||||
DEVICE_CLASS_ENERGY,
|
DEVICE_CLASS_ENERGY,
|
||||||
DEVICE_CLASS_HUMIDITY,
|
DEVICE_CLASS_HUMIDITY,
|
||||||
DEVICE_CLASS_ILLUMINANCE,
|
DEVICE_CLASS_ILLUMINANCE,
|
||||||
|
DEVICE_CLASS_MONETARY,
|
||||||
DEVICE_CLASS_SIGNAL_STRENGTH,
|
DEVICE_CLASS_SIGNAL_STRENGTH,
|
||||||
DEVICE_CLASS_TEMPERATURE,
|
DEVICE_CLASS_TEMPERATURE,
|
||||||
DEVICE_CLASS_POWER,
|
DEVICE_CLASS_POWER,
|
||||||
|
@ -66,6 +67,7 @@ DEVICE_CLASSES = [
|
||||||
DEVICE_CLASS_ENERGY,
|
DEVICE_CLASS_ENERGY,
|
||||||
DEVICE_CLASS_HUMIDITY,
|
DEVICE_CLASS_HUMIDITY,
|
||||||
DEVICE_CLASS_ILLUMINANCE,
|
DEVICE_CLASS_ILLUMINANCE,
|
||||||
|
DEVICE_CLASS_MONETARY,
|
||||||
DEVICE_CLASS_SIGNAL_STRENGTH,
|
DEVICE_CLASS_SIGNAL_STRENGTH,
|
||||||
DEVICE_CLASS_TEMPERATURE,
|
DEVICE_CLASS_TEMPERATURE,
|
||||||
DEVICE_CLASS_TIMESTAMP,
|
DEVICE_CLASS_TIMESTAMP,
|
||||||
|
|
|
@ -777,6 +777,7 @@ DEVICE_CLASS_CURRENT = "current"
|
||||||
DEVICE_CLASS_ENERGY = "energy"
|
DEVICE_CLASS_ENERGY = "energy"
|
||||||
DEVICE_CLASS_HUMIDITY = "humidity"
|
DEVICE_CLASS_HUMIDITY = "humidity"
|
||||||
DEVICE_CLASS_ILLUMINANCE = "illuminance"
|
DEVICE_CLASS_ILLUMINANCE = "illuminance"
|
||||||
|
DEVICE_CLASS_MONETARY = "monetary"
|
||||||
DEVICE_CLASS_SIGNAL_STRENGTH = "signal_strength"
|
DEVICE_CLASS_SIGNAL_STRENGTH = "signal_strength"
|
||||||
DEVICE_CLASS_TEMPERATURE = "temperature"
|
DEVICE_CLASS_TEMPERATURE = "temperature"
|
||||||
DEVICE_CLASS_POWER_FACTOR = "power_factor"
|
DEVICE_CLASS_POWER_FACTOR = "power_factor"
|
||||||
|
|
Loading…
Reference in a new issue