From 7598cf9bc79485f6d75eb895f07df98c130c5f4c Mon Sep 17 00:00:00 2001 From: jimtng <2554958+jimtng@users.noreply.github.com> Date: Mon, 13 Jan 2025 06:14:16 +1000 Subject: [PATCH] [netatmo] Make configuration link clickable in Main UI (#18079) See https://github.com/openhab/openhab-webui/pull/2996 Signed-off-by: Jimmy Tanagra --- .../binding/netatmo/internal/handler/ApiBridgeHandler.java | 3 ++- .../src/main/resources/OH-INF/i18n/netatmo.properties | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bundles/org.openhab.binding.netatmo/src/main/java/org/openhab/binding/netatmo/internal/handler/ApiBridgeHandler.java b/bundles/org.openhab.binding.netatmo/src/main/java/org/openhab/binding/netatmo/internal/handler/ApiBridgeHandler.java index b577ad25d023e..d801fb0ff6bcb 100644 --- a/bundles/org.openhab.binding.netatmo/src/main/java/org/openhab/binding/netatmo/internal/handler/ApiBridgeHandler.java +++ b/bundles/org.openhab.binding.netatmo/src/main/java/org/openhab/binding/netatmo/internal/handler/ApiBridgeHandler.java @@ -216,7 +216,8 @@ private void startAuthorizationFlow() { servlet.startListening(); grantServlet = Optional.of(servlet); updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.CONFIGURATION_ERROR, - "@text/conf-error-grant-needed [ \"%s\" ]".formatted(servlet.getPath())); + "@text/conf-error-grant-needed [ \"http(s)://:%s\" ]" + .formatted(servlet.getPath())); connectApi.dispose(); } diff --git a/bundles/org.openhab.binding.netatmo/src/main/resources/OH-INF/i18n/netatmo.properties b/bundles/org.openhab.binding.netatmo/src/main/resources/OH-INF/i18n/netatmo.properties index f88ca9f90d299..2a6ea05a5692f 100644 --- a/bundles/org.openhab.binding.netatmo/src/main/resources/OH-INF/i18n/netatmo.properties +++ b/bundles/org.openhab.binding.netatmo/src/main/resources/OH-INF/i18n/netatmo.properties @@ -459,7 +459,7 @@ config.refreshInterval.description = The refresh interval to poll Netatmo API (i conf-error-no-client-id = Cannot connect to Netatmo bridge as no client id is available in the configuration conf-error-no-client-secret = Cannot connect to Netatmo bridge as no client secret is available in the configuration -conf-error-grant-needed = Complete the configuration by granting the binding to Netatmo Connect: ''{0}''. +conf-error-grant-needed = Complete the configuration by granting the binding to Netatmo Connect: {0} status-bridge-offline = Bridge is not connected to Netatmo API device-not-connected = Thing is not reachable data-over-limit = Data seems quite old