[openuv] Internationalization of discovery result (#11485)

Fix #11480

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
This commit is contained in:
lolodomo 2021-11-01 09:57:38 +01:00 committed by GitHub
parent ba9d8b3edb
commit f33a11ba81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View 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 {