Add device classes for electrical measurement (#36800)

* added device classes for electrical measurement

(cherry picked from commit 2409fe19ed43bef568a0cca826652867d3a2d71a)

* upadte power factor unit (%)

* update power factor unit (%)
This commit is contained in:
fabiocastagnino
2020-08-08 21:04:18 +02:00
committed by GitHub
parent 74c23c3e96
commit 02d572aae5
7 changed files with 57 additions and 1 deletions

View File

@@ -218,6 +218,10 @@ DEVICE_CLASS_TEMPERATURE = "temperature"
DEVICE_CLASS_TIMESTAMP = "timestamp"
DEVICE_CLASS_PRESSURE = "pressure"
DEVICE_CLASS_POWER = "power"
DEVICE_CLASS_CURRENT = "current"
DEVICE_CLASS_ENERGY = "energy"
DEVICE_CLASS_POWER_FACTOR = "power_factor"
DEVICE_CLASS_VOLTAGE = "voltage"
# #### STATES ####
STATE_ON = "on"