mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 10:17:09 +00:00
Visiblity fix unit km to m (#74008)
This commit is contained in:
parent
2f0fe0df82
commit
e706c6a15f
@ -31,7 +31,7 @@ from homeassistant.components.weather import (
|
|||||||
)
|
)
|
||||||
from homeassistant.const import (
|
from homeassistant.const import (
|
||||||
DEGREE,
|
DEGREE,
|
||||||
LENGTH_KILOMETERS,
|
LENGTH_METERS,
|
||||||
LENGTH_MILLIMETERS,
|
LENGTH_MILLIMETERS,
|
||||||
PERCENTAGE,
|
PERCENTAGE,
|
||||||
PRESSURE_HPA,
|
PRESSURE_HPA,
|
||||||
@ -248,7 +248,7 @@ WEATHER_SENSOR_TYPES: tuple[SensorEntityDescription, ...] = (
|
|||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
key=ATTR_API_VISIBILITY_DISTANCE,
|
key=ATTR_API_VISIBILITY_DISTANCE,
|
||||||
name="Visibility",
|
name="Visibility",
|
||||||
native_unit_of_measurement=LENGTH_KILOMETERS,
|
native_unit_of_measurement=LENGTH_METERS,
|
||||||
state_class=SensorStateClass.MEASUREMENT,
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
),
|
),
|
||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user