Add UV unit to meteo_france UV sensor (#43992)

This commit is contained in:
mbo18 2020-12-07 10:47:29 +01:00 committed by GitHub
parent 5fc7df2746
commit 4bcb6c0ec6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,6 +26,7 @@ from homeassistant.const import (
PRESSURE_HPA, PRESSURE_HPA,
SPEED_KILOMETERS_PER_HOUR, SPEED_KILOMETERS_PER_HOUR,
TEMP_CELSIUS, TEMP_CELSIUS,
UV_INDEX,
) )
DOMAIN = "meteo_france" DOMAIN = "meteo_france"
@ -110,7 +111,7 @@ SENSOR_TYPES = {
}, },
"uv": { "uv": {
ENTITY_NAME: "UV", ENTITY_NAME: "UV",
ENTITY_UNIT: None, ENTITY_UNIT: UV_INDEX,
ENTITY_ICON: "mdi:sunglasses", ENTITY_ICON: "mdi:sunglasses",
ENTITY_DEVICE_CLASS: None, ENTITY_DEVICE_CLASS: None,
ENTITY_ENABLE: True, ENTITY_ENABLE: True,