mirror of
https://github.com/home-assistant/core.git
synced 2025-08-03 12:45:28 +02:00
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:
@@ -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,
|
||||
),
|
||||
|
Reference in New Issue
Block a user