mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Add UV unit to meteo_france UV sensor (#43992)
This commit is contained in:
parent
5fc7df2746
commit
4bcb6c0ec6
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user