Add and use more unit constants (#32122)
* Add and use speed constants * Add and use meter based volume and area constants * Add and use more mass unit constants * Add and use concentration unit constants * Add and use watts per square meter constant * Use more time constants * Use more data constants
This commit is contained in:
parent
c98f50115d
commit
496bd3dddf
44 changed files with 422 additions and 177 deletions
|
@ -3,6 +3,7 @@ from homeassistant.components import mysensors
|
|||
from homeassistant.components.sensor import DOMAIN
|
||||
from homeassistant.const import (
|
||||
ENERGY_KILO_WATT_HOUR,
|
||||
MASS_KILOGRAMS,
|
||||
POWER_WATT,
|
||||
TEMP_CELSIUS,
|
||||
TEMP_FAHRENHEIT,
|
||||
|
@ -20,7 +21,7 @@ SENSORS = {
|
|||
"V_WIND": [None, "mdi:weather-windy"],
|
||||
"V_GUST": [None, "mdi:weather-windy"],
|
||||
"V_DIRECTION": ["°", "mdi:compass"],
|
||||
"V_WEIGHT": ["kg", "mdi:weight-kilogram"],
|
||||
"V_WEIGHT": [MASS_KILOGRAMS, "mdi:weight-kilogram"],
|
||||
"V_DISTANCE": ["m", "mdi:ruler"],
|
||||
"V_IMPEDANCE": ["ohm", None],
|
||||
"V_WATT": [POWER_WATT, None],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue