Use Volume Flow Rate device class in BTHome (#113530)

This commit is contained in:
Joost Lekkerkerker 2024-03-15 18:19:14 +01:00 committed by GitHub
parent 98132d1cd3
commit 066594b25b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -334,6 +334,7 @@ SENSOR_DESCRIPTIONS = {
Units.VOLUME_FLOW_RATE_CUBIC_METERS_PER_HOUR,
): SensorEntityDescription(
key=f"{BTHomeSensorDeviceClass.VOLUME_FLOW_RATE}_{Units.VOLUME_FLOW_RATE_CUBIC_METERS_PER_HOUR}",
device_class=SensorDeviceClass.VOLUME_FLOW_RATE,
native_unit_of_measurement=UnitOfVolumeFlowRate.CUBIC_METERS_PER_HOUR,
state_class=SensorStateClass.MEASUREMENT,
),