Change air pressure unit to hPa in OpenWeatherMap (#42801)
parent
df38c59dc8
commit
239b3f059b
|
@ -16,7 +16,7 @@ from homeassistant.const import (
|
|||
DEVICE_CLASS_TIMESTAMP,
|
||||
LENGTH_MILLIMETERS,
|
||||
PERCENTAGE,
|
||||
PRESSURE_PA,
|
||||
PRESSURE_HPA,
|
||||
SPEED_METERS_PER_SECOND,
|
||||
TEMP_CELSIUS,
|
||||
)
|
||||
|
@ -170,7 +170,7 @@ WEATHER_SENSOR_TYPES = {
|
|||
},
|
||||
ATTR_API_PRESSURE: {
|
||||
SENSOR_NAME: "Pressure",
|
||||
SENSOR_UNIT: PRESSURE_PA,
|
||||
SENSOR_UNIT: PRESSURE_HPA,
|
||||
SENSOR_DEVICE_CLASS: DEVICE_CLASS_PRESSURE,
|
||||
},
|
||||
ATTR_API_CLOUDS: {SENSOR_NAME: "Cloud coverage", SENSOR_UNIT: PERCENTAGE},
|
||||
|
|
Loading…
Reference in New Issue