Add GJ as supported unit for energy sensors (#80870)

* Add GJ as supported unit for energy sensors

* Update homeassistant/const.py

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
This commit is contained in:
Erik Montnemery 2022-10-25 16:43:00 +02:00 committed by GitHub
parent e9a3982560
commit 727eccfec4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 33 additions and 4 deletions

View file

@ -487,9 +487,10 @@ POWER_BTU_PER_HOUR: Final = "BTU/h"
POWER_VOLT_AMPERE_REACTIVE: Final = "var"
# Energy units
ENERGY_WATT_HOUR: Final = "Wh"
ENERGY_GIGA_JOULE: Final = "GJ"
ENERGY_KILO_WATT_HOUR: Final = "kWh"
ENERGY_MEGA_WATT_HOUR: Final = "MWh"
ENERGY_WATT_HOUR: Final = "Wh"
# Electric_current units
ELECTRIC_CURRENT_MILLIAMPERE: Final = "mA"