fix(luftdaten): air pressure is reported in pascal instead of hecto pascal (#59687)
parent
c2d66956b0
commit
04a258bf21
|
@ -19,7 +19,7 @@ from homeassistant.const import (
|
||||||
DEVICE_CLASS_PRESSURE,
|
DEVICE_CLASS_PRESSURE,
|
||||||
DEVICE_CLASS_TEMPERATURE,
|
DEVICE_CLASS_TEMPERATURE,
|
||||||
PERCENTAGE,
|
PERCENTAGE,
|
||||||
PRESSURE_HPA,
|
PRESSURE_PA,
|
||||||
TEMP_CELSIUS,
|
TEMP_CELSIUS,
|
||||||
)
|
)
|
||||||
from homeassistant.core import callback
|
from homeassistant.core import callback
|
||||||
|
@ -68,14 +68,14 @@ SENSOR_TYPES: tuple[SensorEntityDescription, ...] = (
|
||||||
key=SENSOR_PRESSURE,
|
key=SENSOR_PRESSURE,
|
||||||
name="Pressure",
|
name="Pressure",
|
||||||
icon="mdi:arrow-down-bold",
|
icon="mdi:arrow-down-bold",
|
||||||
native_unit_of_measurement=PRESSURE_HPA,
|
native_unit_of_measurement=PRESSURE_PA,
|
||||||
device_class=DEVICE_CLASS_PRESSURE,
|
device_class=DEVICE_CLASS_PRESSURE,
|
||||||
),
|
),
|
||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
key=SENSOR_PRESSURE_AT_SEALEVEL,
|
key=SENSOR_PRESSURE_AT_SEALEVEL,
|
||||||
name="Pressure at sealevel",
|
name="Pressure at sealevel",
|
||||||
icon="mdi:download",
|
icon="mdi:download",
|
||||||
native_unit_of_measurement=PRESSURE_HPA,
|
native_unit_of_measurement=PRESSURE_PA,
|
||||||
device_class=DEVICE_CLASS_PRESSURE,
|
device_class=DEVICE_CLASS_PRESSURE,
|
||||||
),
|
),
|
||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
|
|
Loading…
Reference in New Issue