From 6135e3104c7fd7d7232333fc028f025e9d609d40 Mon Sep 17 00:00:00 2001 From: Chris Date: Wed, 15 Mar 2023 15:03:53 -0700 Subject: [PATCH] fix: change usage_session to `TOTAL_INCREASING` (#180) --- custom_components/openevse/const.py | 2 +- custom_components/openevse/manifest.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/openevse/const.py b/custom_components/openevse/const.py index bee2927..b4f5bab 100644 --- a/custom_components/openevse/const.py +++ b/custom_components/openevse/const.py @@ -101,7 +101,7 @@ key="usage_session", name="Usage this Session", native_unit_of_measurement=ENERGY_KILO_WATT_HOUR, - state_class=SensorStateClass.TOTAL, + state_class=SensorStateClass.TOTAL_INCREASING, device_class=SensorDeviceClass.ENERGY, ), "usage_total": SensorEntityDescription( diff --git a/custom_components/openevse/manifest.json b/custom_components/openevse/manifest.json index bd0ddb1..71c1a34 100644 --- a/custom_components/openevse/manifest.json +++ b/custom_components/openevse/manifest.json @@ -7,7 +7,7 @@ "documentation": "https://github.com/firstof9/openevse/", "iot_class": "local_push", "issue_tracker": "https://github.com/firstof9/openevse/issues", - "requirements": ["python-openevse-http==0.1.45"], + "requirements": ["python-openevse-http==0.1.46"], "version": "0.0.0-dev", "zeroconf": ["_openevse._tcp.local."] }