From ee15ea6fa1301bd4220ea68ab34d859ea10fa990 Mon Sep 17 00:00:00 2001 From: Brandon McFarlin <6525520+Brandawg93@users.noreply.github.com> Date: Wed, 27 Dec 2023 09:13:31 -0500 Subject: [PATCH] Update component.jsx --- src/widgets/peanut/component.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/widgets/peanut/component.jsx b/src/widgets/peanut/component.jsx index bf0e0f4d..98aadbed 100644 --- a/src/widgets/peanut/component.jsx +++ b/src/widgets/peanut/component.jsx @@ -24,6 +24,7 @@ export default function Component({ service }) { ); } + // backwards compatibility with peanut v1 if ('battery.charge' in upsData) { upsData.battery_charge = upsData['battery.charge']; }