From fe462a71d6fc550f24b69cda4d9f69f2c225815a Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Mon, 20 Jan 2025 07:55:26 -0800 Subject: [PATCH] Fix: handle evcc breaking change (#4630) --- src/widgets/evcc/component.jsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/widgets/evcc/component.jsx b/src/widgets/evcc/component.jsx index 09a8ffe4f..1baf4fe9f 100644 --- a/src/widgets/evcc/component.jsx +++ b/src/widgets/evcc/component.jsx @@ -29,10 +29,13 @@ export default function Component({ service }) { ); } + // broken by evcc v0.133.0 https://github.com/evcc-io/evcc/commit/9dcb1fa0a7c08dd926b79309aa1f676a5fc6c8aa + const gridPower = stateData.result.gridPower ?? stateData.result.grid?.power ?? 0; + return ( - +