Use LENGTH_METERS constant (#34110)
This commit is contained in:
parent
538bb60022
commit
00b6409b76
9 changed files with 57 additions and 18 deletions
|
@ -20,6 +20,7 @@ from homeassistant.const import (
|
|||
CONF_MONITORED_CONDITIONS,
|
||||
CONF_NAME,
|
||||
LENGTH_KILOMETERS,
|
||||
LENGTH_METERS,
|
||||
SPEED_KILOMETERS_PER_HOUR,
|
||||
TEMP_CELSIUS,
|
||||
UNIT_PERCENTAGE,
|
||||
|
@ -73,7 +74,7 @@ SENSOR_TYPES = {
|
|||
"rel_hum": ["Relative Humidity", UNIT_PERCENTAGE],
|
||||
"sea_state": ["Sea State", None],
|
||||
"swell_dir_worded": ["Swell Direction", None],
|
||||
"swell_height": ["Swell Height", "m"],
|
||||
"swell_height": ["Swell Height", LENGTH_METERS],
|
||||
"swell_period": ["Swell Period", None],
|
||||
"vis_km": [f"Visability {LENGTH_KILOMETERS}", LENGTH_KILOMETERS],
|
||||
"weather": ["Weather", None],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue