Skip to content

Commit 90fd9f4

Browse files
authored
Merge pull request #12 from Hypfer/patch-1
Update StateClass of Liters and Seconds sensor
2 parents 4353bb2 + c4918ed commit 90fd9f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

custom_components/amphiro_ble/sensor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
key=f"{DeviceClass.VOLUME_DISPENSED}_{UnitOfVolume.LITERS}",
5050
device_class=DeviceClass.VOLUME_DISPENSED,
5151
native_unit_of_measurement=UnitOfVolume.LITERS,
52-
state_class=SensorStateClass.TOTAL,
52+
state_class=SensorStateClass.TOTAL_INCREASING,
5353
),
5454
(SSDSensorDeviceClass.TEMPERATURE, UnitOfTemperature.CELSIUS): SensorEntityDescription(
5555
key=f"{SSDSensorDeviceClass.TEMPERATURE}_{UnitOfTemperature.CELSIUS}",
@@ -61,7 +61,7 @@
6161
key=f"{DeviceClass.TIME}_{UnitOfTime.SECONDS}",
6262
device_class=DeviceClass.TIME,
6363
native_unit_of_measurement=UnitOfTime.SECONDS,
64-
state_class=SensorStateClass.TOTAL,
64+
state_class=SensorStateClass.TOTAL_INCREASING,
6565
),
6666
}
6767

0 commit comments

Comments
 (0)