Update component.jsx

This commit is contained in:
Brandon McFarlin 2023-12-27 09:13:31 -05:00
parent 18c5e08452
commit ee15ea6fa1

View File

@ -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'];
}