Drop UNIT_ prefix for constants (#34164)
* Drop UNIT_ prefix for VOLT * Drop UNIT_ prefix for DEGREE * Drop UNIT_ prefix for CONDUCTIVITY * Drop UNIT_ prefix for UV_INDEX * Run isort
This commit is contained in:
1 parent
fbde040f59
commit
ef9d9b17bd
42 files changed
+170
-196
No files matched your search
@@ -17,6 +17,7 @@ from homeassistant.const import (
|
||||
CONF_LATITUDE,
|
||||
CONF_LONGITUDE,
|
||||
CONF_MONITORED_CONDITIONS,
|
||||
DEGREE,
|
||||
IRRADIATION_WATTS_PER_SQUARE_METER,
|
||||
LENGTH_FEET,
|
||||
LENGTH_INCHES,
|
||||
@@ -26,7 +27,6 @@ from homeassistant.const import (
|
||||
SPEED_MILES_PER_HOUR,
|
||||
TEMP_CELSIUS,
|
||||
TEMP_FAHRENHEIT,
|
||||
UNIT_DEGREE,
|
||||
UNIT_PERCENTAGE,
|
||||
)
|
||||
from homeassistant.exceptions import PlatformNotReady
|
||||
@@ -457,7 +457,7 @@ SENSOR_TYPES = {
|
||||
),
|
||||
"weather": WUCurrentConditionsSensorConfig("Weather Summary", "weather", None),
|
||||
"wind_degrees": WUCurrentConditionsSensorConfig(
|
||||
"Wind Degrees", "wind_degrees", "mdi:weather-windy", UNIT_DEGREE
|
||||
"Wind Degrees", "wind_degrees", "mdi:weather-windy", DEGREE
|
||||
),
|
||||
"wind_dir": WUCurrentConditionsSensorConfig(
|
||||
"Wind Direction", "wind_dir", "mdi:weather-windy"
|
||||
|
||||
Reference in new issue
Block a user