mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 17:27:10 +00:00
Add edl21 sensor unit mapping for Hz (#76783)
Added sensor unit mapping for Hz.
This commit is contained in:
parent
d0986c7650
commit
d8392ef6ba
@ -22,6 +22,7 @@ from homeassistant.const import (
|
||||
ELECTRIC_POTENTIAL_VOLT,
|
||||
ENERGY_KILO_WATT_HOUR,
|
||||
ENERGY_WATT_HOUR,
|
||||
FREQUENCY_HERTZ,
|
||||
POWER_WATT,
|
||||
)
|
||||
from homeassistant.core import HomeAssistant, callback
|
||||
@ -252,6 +253,7 @@ SENSOR_UNIT_MAPPING = {
|
||||
"A": ELECTRIC_CURRENT_AMPERE,
|
||||
"V": ELECTRIC_POTENTIAL_VOLT,
|
||||
"°": DEGREE,
|
||||
"Hz": FREQUENCY_HERTZ,
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user