mirror of
https://github.com/home-assistant/core.git
synced 2025-05-30 18:57:10 +00:00
Change air pressure unit to hPa in OpenWeatherMap (#42801)
This commit is contained in:
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…
x
Reference in New Issue
Block a user