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
@@ -15,6 +15,7 @@ from homeassistant.const import (
|
||||
CONF_MONITORED_CONDITIONS,
|
||||
CONF_NAME,
|
||||
CONF_SCAN_INTERVAL,
|
||||
DEGREE,
|
||||
LENGTH_CENTIMETERS,
|
||||
LENGTH_KILOMETERS,
|
||||
SPEED_KILOMETERS_PER_HOUR,
|
||||
@@ -23,9 +24,8 @@ from homeassistant.const import (
|
||||
TEMP_CELSIUS,
|
||||
TEMP_FAHRENHEIT,
|
||||
TIME_HOURS,
|
||||
UNIT_DEGREE,
|
||||
UNIT_PERCENTAGE,
|
||||
UNIT_UV_INDEX,
|
||||
UV_INDEX,
|
||||
)
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
from homeassistant.helpers.entity import Entity
|
||||
@@ -89,11 +89,11 @@ SENSOR_TYPES = {
|
||||
],
|
||||
"nearest_storm_bearing": [
|
||||
"Nearest Storm Bearing",
|
||||
UNIT_DEGREE,
|
||||
UNIT_DEGREE,
|
||||
UNIT_DEGREE,
|
||||
UNIT_DEGREE,
|
||||
UNIT_DEGREE,
|
||||
DEGREE,
|
||||
DEGREE,
|
||||
DEGREE,
|
||||
DEGREE,
|
||||
DEGREE,
|
||||
"mdi:weather-lightning",
|
||||
["currently"],
|
||||
],
|
||||
@@ -179,11 +179,11 @@ SENSOR_TYPES = {
|
||||
],
|
||||
"wind_bearing": [
|
||||
"Wind Bearing",
|
||||
UNIT_DEGREE,
|
||||
UNIT_DEGREE,
|
||||
UNIT_DEGREE,
|
||||
UNIT_DEGREE,
|
||||
UNIT_DEGREE,
|
||||
DEGREE,
|
||||
DEGREE,
|
||||
DEGREE,
|
||||
DEGREE,
|
||||
DEGREE,
|
||||
"mdi:compass",
|
||||
["currently", "hourly", "daily"],
|
||||
],
|
||||
@@ -339,11 +339,11 @@ SENSOR_TYPES = {
|
||||
],
|
||||
"uv_index": [
|
||||
"UV Index",
|
||||
UNIT_UV_INDEX,
|
||||
UNIT_UV_INDEX,
|
||||
UNIT_UV_INDEX,
|
||||
UNIT_UV_INDEX,
|
||||
UNIT_UV_INDEX,
|
||||
UV_INDEX,
|
||||
UV_INDEX,
|
||||
UV_INDEX,
|
||||
UV_INDEX,
|
||||
UV_INDEX,
|
||||
"mdi:weather-sunny",
|
||||
["currently", "hourly", "daily"],
|
||||
],
|
||||
|
||||
Reference in new issue
Block a user