mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-25 14:55:55 +01:00
[openuv] Internationalization of discovery result (#11485)
Fix #11480 Signed-off-by: Laurent Garnier <lg.hc@free.fr>
This commit is contained in:
parent
ba9d8b3edb
commit
f33a11ba81
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user