fix(luftdaten): air pressure is reported in pascal instead of hecto pascal (#59687)

pull/59710/head
Giel van Schijndel 2021-11-15 09:51:57 +01:00 committed by GitHub
parent c2d66956b0
commit 04a258bf21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -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(