mirror of
https://github.com/home-assistant/core.git
synced 2025-08-05 13:45:12 +02:00
Add calorie and bpm to units
This commit is contained in:
@@ -157,13 +157,13 @@ class SensorDeviceClass(StrEnum):
|
||||
ENERGY = "energy"
|
||||
"""Energy.
|
||||
|
||||
Unit of measurement: `Wh`, `kWh`, `MWh`, `GJ`
|
||||
Unit of measurement: `Wh`, `kWh`, `MWh`, `GJ`, `cal`
|
||||
"""
|
||||
|
||||
FREQUENCY = "frequency"
|
||||
"""Frequency.
|
||||
|
||||
Unit of measurement: `Hz`, `kHz`, `MHz`, `GHz`
|
||||
Unit of measurement: `Hz`, `kHz`, `MHz`, `GHz`, `bpm`
|
||||
"""
|
||||
|
||||
GAS = "gas"
|
||||
|
@@ -519,6 +519,7 @@ class UnitOfEnergy(StrEnum):
|
||||
KILO_WATT_HOUR = "kWh"
|
||||
MEGA_WATT_HOUR = "MWh"
|
||||
WATT_HOUR = "Wh"
|
||||
CALORIE = "cal"
|
||||
|
||||
|
||||
ENERGY_KILO_WATT_HOUR: Final = "kWh"
|
||||
@@ -657,6 +658,7 @@ class UnitOfFrequency(StrEnum):
|
||||
KILOHERTZ = "kHz"
|
||||
MEGAHERTZ = "MHz"
|
||||
GIGAHERTZ = "GHz"
|
||||
BPM = "bpm"
|
||||
|
||||
|
||||
FREQUENCY_HERTZ: Final = "Hz"
|
||||
|
Reference in New Issue
Block a user