Visiblity fix unit km to m (#74008)

This commit is contained in:
leroyloren 2022-06-28 01:53:57 +02:00 committed by GitHub
parent 2f0fe0df82
commit e706c6a15f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,7 +31,7 @@ from homeassistant.components.weather import (
)
from homeassistant.const import (
DEGREE,
LENGTH_KILOMETERS,
LENGTH_METERS,
LENGTH_MILLIMETERS,
PERCENTAGE,
PRESSURE_HPA,
@ -248,7 +248,7 @@ WEATHER_SENSOR_TYPES: tuple[SensorEntityDescription, ...] = (
SensorEntityDescription(
key=ATTR_API_VISIBILITY_DISTANCE,
name="Visibility",
native_unit_of_measurement=LENGTH_KILOMETERS,
native_unit_of_measurement=LENGTH_METERS,
state_class=SensorStateClass.MEASUREMENT,
),
SensorEntityDescription(