Skip to content

Commit 7598cf9

Browse files
authored
[netatmo] Make configuration link clickable in Main UI (openhab#18079)
See openhab/openhab-webui#2996 Signed-off-by: Jimmy Tanagra <[email protected]>
1 parent 3827872 commit 7598cf9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

bundles/org.openhab.binding.netatmo/src/main/java/org/openhab/binding/netatmo/internal/handler/ApiBridgeHandler.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,8 @@ private void startAuthorizationFlow() {
216216
servlet.startListening();
217217
grantServlet = Optional.of(servlet);
218218
updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.CONFIGURATION_ERROR,
219-
"@text/conf-error-grant-needed [ \"%s\" ]".formatted(servlet.getPath()));
219+
"@text/conf-error-grant-needed [ \"http(s)://<YOUROPENHAB>:<YOURPORT>%s\" ]"
220+
.formatted(servlet.getPath()));
220221
connectApi.dispose();
221222
}
222223

bundles/org.openhab.binding.netatmo/src/main/resources/OH-INF/i18n/netatmo.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ config.refreshInterval.description = The refresh interval to poll Netatmo API (i
459459

460460
conf-error-no-client-id = Cannot connect to Netatmo bridge as no client id is available in the configuration
461461
conf-error-no-client-secret = Cannot connect to Netatmo bridge as no client secret is available in the configuration
462-
conf-error-grant-needed = Complete the configuration by granting the binding to Netatmo Connect: ''{0}''.
462+
conf-error-grant-needed = Complete the configuration by granting the binding to Netatmo Connect: {0}
463463
status-bridge-offline = Bridge is not connected to Netatmo API
464464
device-not-connected = Thing is not reachable
465465
data-over-limit = Data seems quite old

0 commit comments

Comments
 (0)