Add volume flow rate device class to water_flow sensor in PEGELONLINE (#143631)

add SensorDeviceClass.VOLUME_FLOW_RATE to water_flow sensor
This commit is contained in:
Michael
2025-04-25 00:42:58 +02:00
committed by GitHub
parent 3405b2549b
commit 605bf7e287

View File

@@ -70,6 +70,7 @@ SENSORS: tuple[PegelOnlineSensorEntityDescription, ...] = (
key="water_flow",
translation_key="water_flow",
state_class=SensorStateClass.MEASUREMENT,
device_class=SensorDeviceClass.VOLUME_FLOW_RATE,
entity_registry_enabled_default=False,
measurement_fn=lambda data: data.water_flow,
),