mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
[xiaomi_ble] Support Body Composition Scale S400 (#142705)
This commit is contained in:
parent
18c814d3dc
commit
8ab59bee47
@ -177,6 +177,25 @@ SENSOR_DESCRIPTIONS = {
|
|||||||
native_unit_of_measurement=UnitOfTime.MINUTES,
|
native_unit_of_measurement=UnitOfTime.MINUTES,
|
||||||
state_class=SensorStateClass.MEASUREMENT,
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
),
|
),
|
||||||
|
# Low frequency impedance sensor (ohm)
|
||||||
|
(ExtendedSensorDeviceClass.IMPEDANCE_LOW, Units.OHM): SensorEntityDescription(
|
||||||
|
key=str(ExtendedSensorDeviceClass.IMPEDANCE_LOW),
|
||||||
|
native_unit_of_measurement=Units.OHM,
|
||||||
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
|
icon="mdi:omega",
|
||||||
|
),
|
||||||
|
# Heart rate sensor (bpm)
|
||||||
|
(ExtendedSensorDeviceClass.HEART_RATE, "bpm"): SensorEntityDescription(
|
||||||
|
key=str(ExtendedSensorDeviceClass.HEART_RATE),
|
||||||
|
native_unit_of_measurement="bpm",
|
||||||
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
|
icon="mdi:heart-pulse",
|
||||||
|
),
|
||||||
|
# User profile ID sensor
|
||||||
|
(ExtendedSensorDeviceClass.PROFILE_ID, None): SensorEntityDescription(
|
||||||
|
key=str(ExtendedSensorDeviceClass.PROFILE_ID),
|
||||||
|
icon="mdi:identifier",
|
||||||
|
),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user