mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
Fix wrong usage of representationProperty (#8793)
Signed-off-by: Jochen Klein <git@jochen.susca.de>
This commit is contained in:
parent
459ee8d7cd
commit
42d1c26912
@ -177,12 +177,13 @@ public class HomeAssistantDiscovery extends AbstractMQTTDiscovery {
|
||||
HandlerConfiguration handlerConfig = new HandlerConfiguration(haID.baseTopic, topics);
|
||||
properties = handlerConfig.appendToProperties(properties);
|
||||
properties = config.appendToProperties(properties);
|
||||
properties.put("deviceId", thingID);
|
||||
|
||||
// Because we need the new properties map with the updated "components" list
|
||||
results.put(thingUID.getAsString(),
|
||||
DiscoveryResultBuilder.create(thingUID).withProperties(properties).withRepresentationProperty(thingID)
|
||||
.withBridge(connectionBridge).withLabel(config.getThingName() + " (" + componentNames + ")")
|
||||
.build());
|
||||
DiscoveryResultBuilder.create(thingUID).withProperties(properties)
|
||||
.withRepresentationProperty("deviceId").withBridge(connectionBridge)
|
||||
.withLabel(config.getThingName() + " (" + componentNames + ")").build());
|
||||
}
|
||||
|
||||
protected void publishResults() {
|
||||
|
Loading…
Reference in New Issue
Block a user