mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user