Add and use frequency constants (#34113)

This commit is contained in:
springstan authored and GitHub committed 2020-04-12 22:44:31 +02:00
1 parent 00b6409b76
commit 19dd797dfe
9 files changed
+29 -14

No files matched your search

+2 -1
View File
@@ -3,6 +3,7 @@ from homeassistant.components import mysensors
from homeassistant.components.sensor import DOMAIN
from homeassistant.const import (
ENERGY_KILO_WATT_HOUR,
FREQUENCY_HERTZ,
LENGTH_METERS,
MASS_KILOGRAMS,
POWER_WATT,
@@ -36,7 +37,7 @@ SENSORS = {
"V_VOLUME": ["m³", None],
"V_LEVEL": {
"S_SOUND": ["dB", "mdi:volume-high"],
"S_VIBRATION": ["Hz", None],
"S_VIBRATION": [FREQUENCY_HERTZ, None],
"S_LIGHT_LEVEL": ["lx", "mdi:white-balance-sunny"],
},
"V_VOLTAGE": [UNIT_VOLT, "mdi:flash"],