From a0a5af8c4cb5ec3013f82681e645d02d83e4d255 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luca=20F=C3=A9lix?= Date: Mon, 1 Dec 2025 13:51:54 +0000 Subject: [PATCH] feat: :sparkles: accept negative battery soc for special use-cases, like in: https://github.com/flixlix/power-flow-card-plus/issues/724 --- src/components/battery.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/battery.ts b/src/components/battery.ts index b7b4642d..a08751db 100644 --- a/src/components/battery.ts +++ b/src/components/battery.ts @@ -52,7 +52,7 @@ export const batteryElement = ( unit: battery.state_of_charge.unit ?? "%", unitWhiteSpace: battery.state_of_charge.unit_white_space, decimals: battery.state_of_charge.decimals, - accept_negative: undefined, + accept_negative: true, watt_threshold: config.watt_threshold, })} `