1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 04:50:05 +00:00

Use POWER_WATT constant (#33984)

This commit is contained in:
springstan
2020-04-11 15:40:59 +02:00
committed by GitHub
parent 2ab79115d1
commit f839ba00eb
14 changed files with 56 additions and 35 deletions

View File

@@ -349,8 +349,8 @@ POWER_WATT = "W"
UNIT_VOLT = "V"
# Energy units
ENERGY_KILO_WATT_HOUR = "kWh"
ENERGY_WATT_HOUR = "Wh"
ENERGY_WATT_HOUR = f"{POWER_WATT}h"
ENERGY_KILO_WATT_HOUR = f"k{ENERGY_WATT_HOUR}"
# Temperature units
TEMP_CELSIUS = "°C"