Skip to content

Commit

Permalink
fix compilation problems now that we're rebased on top of #15427
Browse files Browse the repository at this point in the history
Signed-off-by: Cody Cutrer <cody@cutrer.us>
  • Loading branch information
ccutrer committed Nov 18, 2023
1 parent 61e6a47 commit 973a7b1
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,19 +149,20 @@ public Update(ComponentFactory.ComponentConfiguration componentConfiguration) {
String commandTopic = channelConfiguration.commandTopic;
String payloadInstall = channelConfiguration.payloadInstall;

var builder = buildChannel(UPDATE_CHANNEL_ID, value, channelConfiguration.getName(), this);
var builder = buildChannel(UPDATE_CHANNEL_ID, value, getName(), this);
if (channelConfiguration.stateTopic != null) {
builder.stateTopic(channelConfiguration.stateTopic, channelConfiguration.getValueTemplate());
}
if (commandTopic != null && payloadInstall != null) {
updatable = true;
builder.commandTopic(channelConfiguration.commandTopic, channelConfiguration.isRetain());
builder.commandTopic(channelConfiguration.commandTopic, channelConfiguration.isRetain(),
channelConfiguration.getQos());
}
updateChannel = builder.build(false);

if (channelConfiguration.latestVersionTopic != null) {
value = new TextValue();
latestVersionChannel = buildChannel(LATEST_VERSION_CHANNEL_ID, value, channelConfiguration.getName(), this)
latestVersionChannel = buildChannel(LATEST_VERSION_CHANNEL_ID, value, getName(), this)
.stateTopic(channelConfiguration.latestVersionTopic, channelConfiguration.latestVersionTemplate)
.build(false);
}
Expand Down

0 comments on commit 973a7b1

Please sign in to comment.