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_LONGITUDE,
|
||||
CONF_MONITORED_CONDITIONS,
|
||||
CONF_NAME,
|
||||
DEGREE,
|
||||
DEVICE_CLASS_HUMIDITY,
|
||||
DEVICE_CLASS_PRESSURE,
|
||||
DEVICE_CLASS_TEMPERATURE,
|
||||
@@ -24,7 +25,6 @@ from homeassistant.const import (
|
||||
PRESSURE_HPA,
|
||||
SPEED_METERS_PER_SECOND,
|
||||
TEMP_CELSIUS,
|
||||
UNIT_DEGREE,
|
||||
UNIT_PERCENTAGE,
|
||||
)
|
||||
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
||||
@@ -48,7 +48,7 @@ SENSOR_TYPES = {
|
||||
"windSpeed": ["Wind speed", SPEED_METERS_PER_SECOND, None],
|
||||
"windGust": ["Wind gust", SPEED_METERS_PER_SECOND, None],
|
||||
"pressure": ["Pressure", PRESSURE_HPA, DEVICE_CLASS_PRESSURE],
|
||||
"windDirection": ["Wind direction", UNIT_DEGREE, None],
|
||||
"windDirection": ["Wind direction", DEGREE, None],
|
||||
"humidity": ["Humidity", UNIT_PERCENTAGE, DEVICE_CLASS_HUMIDITY],
|
||||
"fog": ["Fog", UNIT_PERCENTAGE, None],
|
||||
"cloudiness": ["Cloudiness", UNIT_PERCENTAGE, None],
|
||||
|
||||
Reference in new issue
Block a user