diff --git a/docs/widgets/services/unifi-controller.md b/docs/widgets/services/unifi-controller.md index c5efc688..45b16db2 100644 --- a/docs/widgets/services/unifi-controller.md +++ b/docs/widgets/services/unifi-controller.md @@ -19,7 +19,7 @@ Allowed fields: `["uptime", "wan", "lan", "lan_users", "lan_devices", "wlan", "w !!! hint - If you enter e.g. incorrect credentials and receive an "API Error", you may need to recreate the container to clear the cache. + If you enter e.g. incorrect credentials and receive an "API Error", you may need to recreate the container or restart the service to clear the cache. ```yaml widget: diff --git a/src/utils/proxy/handlers/generic.js b/src/utils/proxy/handlers/generic.js index 2e788a98..4a71f704 100644 --- a/src/utils/proxy/handlers/generic.js +++ b/src/utils/proxy/handlers/generic.js @@ -79,7 +79,7 @@ export default async function genericProxyHandler(req, res, map) { error: { message: "HTTP Error", url: sanitizeErrorURL(url), - resultData: Buffer.isBuffer(resultData) ? Buffer.from(resultData).toString() : resultData, + data: Buffer.isBuffer(resultData) ? Buffer.from(resultData).toString() : resultData, }, }); } diff --git a/src/widgets/evcc/component.jsx b/src/widgets/evcc/component.jsx index 09a8ffe4..1baf4fe9 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 ( - +