Update component.jsx
This commit is contained in:
parent
18c5e08452
commit
ee15ea6fa1
@ -24,6 +24,7 @@ export default function Component({ service }) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// backwards compatibility with peanut v1
|
||||||
if ('battery.charge' in upsData) {
|
if ('battery.charge' in upsData) {
|
||||||
upsData.battery_charge = upsData['battery.charge'];
|
upsData.battery_charge = upsData['battery.charge'];
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user