Add and use frequency constants (#34113)
This commit is contained in:
1 parent
00b6409b76
commit
19dd797dfe
9 files changed
+29
-14
No files matched your search
@@ -5,6 +5,7 @@ from typing import Callable
|
||||
from homeassistant.components.sensor import DOMAIN
|
||||
from homeassistant.const import (
|
||||
CONCENTRATION_PARTS_PER_MILLION,
|
||||
FREQUENCY_HERTZ,
|
||||
LENGTH_CENTIMETERS,
|
||||
LENGTH_KILOMETERS,
|
||||
LENGTH_METERS,
|
||||
@@ -110,7 +111,7 @@ UOM_FRIENDLY_NAME = {
|
||||
"87": "m³/m³",
|
||||
"88": "Water activity",
|
||||
"89": "RPM",
|
||||
"90": "Hz",
|
||||
"90": FREQUENCY_HERTZ,
|
||||
"91": f"{UNIT_DEGREE} (Relative to North)",
|
||||
"92": f"{UNIT_DEGREE} (Relative to South)",
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user