Use UNIT_UV_INDEX constant (#34055)

This commit is contained in:
springstan authored and GitHub committed 2020-04-12 21:04:13 +02:00
1 parent 138470d86c
commit 44afffcfbf
4 files changed
+9 -6

No files matched your search

+2 -1
View File
@@ -19,6 +19,7 @@ from homeassistant.const import (
POWER_WATT,
TEMP_CELSIUS,
UNIT_PERCENTAGE,
UNIT_UV_INDEX,
)
import homeassistant.helpers.config_validation as cv
from homeassistant.helpers.entity import Entity
@@ -57,7 +58,7 @@ DATA_TYPES = OrderedDict(
("Sound", ""),
("Sensor Status", ""),
("Counter value", ""),
("UV", "uv"),
("UV", UNIT_UV_INDEX),
("Humidity status", ""),
("Forecast", ""),
("Forecast numeric", ""),