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);
|
HandlerConfiguration handlerConfig = new HandlerConfiguration(haID.baseTopic, topics);
|
||||||
properties = handlerConfig.appendToProperties(properties);
|
properties = handlerConfig.appendToProperties(properties);
|
||||||
properties = config.appendToProperties(properties);
|
properties = config.appendToProperties(properties);
|
||||||
|
properties.put("deviceId", thingID);
|
||||||
|
|
||||||
// Because we need the new properties map with the updated "components" list
|
// Because we need the new properties map with the updated "components" list
|
||||||
results.put(thingUID.getAsString(),
|
results.put(thingUID.getAsString(),
|
||||||
DiscoveryResultBuilder.create(thingUID).withProperties(properties).withRepresentationProperty(thingID)
|
DiscoveryResultBuilder.create(thingUID).withProperties(properties)
|
||||||
.withBridge(connectionBridge).withLabel(config.getThingName() + " (" + componentNames + ")")
|
.withRepresentationProperty("deviceId").withBridge(connectionBridge)
|
||||||
.build());
|
.withLabel(config.getThingName() + " (" + componentNames + ")").build());
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void publishResults() {
|
protected void publishResults() {
|
||||||
|
|
Loading…
Reference in New Issue