1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-27 14:31:13 +00:00

Use percentage constant in more integrations (#40165)

This commit is contained in:
springstan
2020-09-19 17:30:22 +02:00
committed by GitHub
parent 711ca6aff5
commit 7de1fe7416
4 changed files with 9 additions and 8 deletions

View File

@@ -22,7 +22,7 @@ UNITS_OF_MEASUREMENT = {
sensor.DEVICE_CLASS_POWER: "kW", # power (W/kW)
sensor.DEVICE_CLASS_CURRENT: "A", # current (A)
sensor.DEVICE_CLASS_ENERGY: "kWh", # energy (Wh/kWh)
sensor.DEVICE_CLASS_POWER_FACTOR: "%", # power factor (no unit, min: -1.0, max: 1.0)
sensor.DEVICE_CLASS_POWER_FACTOR: PERCENTAGE, # power factor (no unit, min: -1.0, max: 1.0)
sensor.DEVICE_CLASS_VOLTAGE: "V", # voltage (V)
}