diff --git a/homeassistant/components/xiaomi_ble/sensor.py b/homeassistant/components/xiaomi_ble/sensor.py index 0fcae1925bb7..3b2fcddc1971 100644 --- a/homeassistant/components/xiaomi_ble/sensor.py +++ b/homeassistant/components/xiaomi_ble/sensor.py @@ -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),