From 1e556e105d9a1e49a00913c7499bbd07e59825a3 Mon Sep 17 00:00:00 2001 From: Jesse Houston Date: Wed, 8 Jan 2025 15:42:38 -0800 Subject: [PATCH 1/3] Documentation: add note about clearing UniFi cache non-docker (#4585) --- docs/widgets/services/unifi-controller.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: 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 2/3] 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 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 ( - + Date: Tue, 21 Jan 2025 07:13:12 -0800 Subject: [PATCH 3/3] Fix: generic proxy error data display --- src/utils/proxy/handlers/generic.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, }, }); }