]> git.basschouten.com Git - openhab-addons.git/commitdiff
[openuv] Internationalization of discovery result (#11485)
authorlolodomo <lg.hc@free.fr>
Mon, 1 Nov 2021 08:57:38 +0000 (09:57 +0100)
committerGitHub <noreply@github.com>
Mon, 1 Nov 2021 08:57:38 +0000 (09:57 +0100)
Fix #11480

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
bundles/org.openhab.binding.openuv/src/main/java/org/openhab/binding/openuv/internal/discovery/OpenUVDiscoveryService.java

index fc677f1dd45176915262b18026d2c6227125f00c..b192db432729a8264305ebb5c53f3fe15ef58fc5 100644 (file)
@@ -73,7 +73,8 @@ public class OpenUVDiscoveryService extends AbstractDiscoveryService implements
             if (location != null) {
                 ThingUID bridgeUID = bridge.getThing().getUID();
                 thingDiscovered(DiscoveryResultBuilder
-                        .create(new ThingUID(LOCATION_REPORT_THING_TYPE, bridgeUID, LOCAL)).withLabel("Local UV Report")
+                        .create(new ThingUID(LOCATION_REPORT_THING_TYPE, bridgeUID, LOCAL))
+                        .withLabel("@text/discovery.openuv.uvreport.local.label")
                         .withProperty(ReportConfiguration.LOCATION, location.toString())
                         .withRepresentationProperty(ReportConfiguration.LOCATION).withBridge(bridgeUID).build());
             } else {