mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00: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:
parent
3405b2549b
commit
605bf7e287
@ -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,
|
||||
),
|
||||
|
Loading…
x
Reference in New Issue
Block a user