mirror of
https://github.com/home-assistant/core.git
synced 2026-09-04 10:05:34 -05:00
Add Linptech PS1BB pressure sensor support to xiaomi_ble (#166095)
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user