Use UNIT_UV_INDEX constant (#34055)
This commit is contained in:
1 parent
138470d86c
commit
44afffcfbf
4 files changed
+9
-6
No files matched your search
@@ -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", ""),
|
||||
|
||||
Reference in new issue
Block a user