From e706c6a15f639184b854e27962e4e33f02d2bc99 Mon Sep 17 00:00:00 2001 From: leroyloren <57643470+leroyloren@users.noreply.github.com> Date: Tue, 28 Jun 2022 01:53:57 +0200 Subject: [PATCH] Visiblity fix unit km to m (#74008) --- homeassistant/components/openweathermap/const.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/openweathermap/const.py b/homeassistant/components/openweathermap/const.py index 027c08fd84b..f180f2a9bbf 100644 --- a/homeassistant/components/openweathermap/const.py +++ b/homeassistant/components/openweathermap/const.py @@ -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(