1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Add mWh as unit of measurement for Matter energy sensors (#133005)

This commit is contained in:
Stefan Agner
2024-12-13 09:33:58 +01:00
committed by GitHub
parent a0e49ebc97
commit 9ab69aa41c
10 changed files with 28 additions and 9 deletions

View File

@@ -619,6 +619,7 @@ class UnitOfEnergy(StrEnum):
KILO_JOULE = "kJ"
MEGA_JOULE = "MJ"
GIGA_JOULE = "GJ"
MILLIWATT_HOUR = "mWh"
WATT_HOUR = "Wh"
KILO_WATT_HOUR = "kWh"
MEGA_WATT_HOUR = "MWh"