From c36cd1a3e5321e5288c7096926800052046a02cb Mon Sep 17 00:00:00 2001 From: Sebastian Muszynski Date: Mon, 6 Nov 2023 18:19:17 +0100 Subject: [PATCH] Increase `accuracy_decimals` to 3 of the `capacity_remaining` sensor See #389 --- components/jk_bms_ble/sensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/jk_bms_ble/sensor.py b/components/jk_bms_ble/sensor.py index 079fe30a..ee32834e 100644 --- a/components/jk_bms_ble/sensor.py +++ b/components/jk_bms_ble/sensor.py @@ -638,7 +638,7 @@ cv.Optional(CONF_CAPACITY_REMAINING): sensor.sensor_schema( unit_of_measurement=UNIT_AMPERE_HOURS, icon=ICON_CAPACITY_REMAINING, - accuracy_decimals=0, + accuracy_decimals=3, device_class=DEVICE_CLASS_EMPTY, state_class=STATE_CLASS_MEASUREMENT, ),