From 4bcb6c0ec696596f8b79d4aea218525d709204cc Mon Sep 17 00:00:00 2001 From: mbo18 Date: Mon, 7 Dec 2020 10:47:29 +0100 Subject: [PATCH] Add UV unit to meteo_france UV sensor (#43992) --- homeassistant/components/meteo_france/const.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/meteo_france/const.py b/homeassistant/components/meteo_france/const.py index bfbaa828ea7..0055d323938 100644 --- a/homeassistant/components/meteo_france/const.py +++ b/homeassistant/components/meteo_france/const.py @@ -26,6 +26,7 @@ from homeassistant.const import ( PRESSURE_HPA, SPEED_KILOMETERS_PER_HOUR, TEMP_CELSIUS, + UV_INDEX, ) DOMAIN = "meteo_france" @@ -110,7 +111,7 @@ SENSOR_TYPES = { }, "uv": { ENTITY_NAME: "UV", - ENTITY_UNIT: None, + ENTITY_UNIT: UV_INDEX, ENTITY_ICON: "mdi:sunglasses", ENTITY_DEVICE_CLASS: None, ENTITY_ENABLE: True,