Add Linptech PS1BB pressure sensor support to xiaomi_ble (#166095)

This commit is contained in:
Ray Xue
2026-03-23 00:21:28 +01:00
committed by GitHub
parent 41c2c621f0
commit b84ca80d55
@@ -177,6 +177,24 @@ SENSOR_DESCRIPTIONS = {
native_unit_of_measurement=UnitOfTime.MINUTES,
state_class=SensorStateClass.MEASUREMENT,
),
# Pressure present duration (in seconds) for Pressure Sensor
(
ExtendedSensorDeviceClass.PRESSURE_PRESENT_DURATION,
Units.TIME_SECONDS,
): SensorEntityDescription(
key=str(ExtendedSensorDeviceClass.PRESSURE_PRESENT_DURATION),
native_unit_of_measurement=UnitOfTime.SECONDS,
state_class=SensorStateClass.MEASUREMENT,
),
# Pressure not present duration (in seconds) for Pressure Sensor
(
ExtendedSensorDeviceClass.PRESSURE_NOT_PRESENT_DURATION,
Units.TIME_SECONDS,
): SensorEntityDescription(
key=str(ExtendedSensorDeviceClass.PRESSURE_NOT_PRESENT_DURATION),
native_unit_of_measurement=UnitOfTime.SECONDS,
state_class=SensorStateClass.MEASUREMENT,
),
# Low frequency impedance sensor (ohm)
(ExtendedSensorDeviceClass.IMPEDANCE_LOW, Units.OHM): SensorEntityDescription(
key=str(ExtendedSensorDeviceClass.IMPEDANCE_LOW),