Skip to content

Commit

Permalink
[mqtt.homeassistant] fix compilation problems
Browse files Browse the repository at this point in the history
Due to openhab#15427 and openhab#14839 being developed independently, but merged
to main successively

Signed-off-by: Cody Cutrer <[email protected]>
  • Loading branch information
ccutrer committed Nov 18, 2023
1 parent 96470d4 commit 828d4e1
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,7 @@ public void updateChannelState(ChannelUID channel, State state) {

if (jsonState.colorTemp != null) {
colorTempValue.update(new QuantityType(Objects.requireNonNull(jsonState.colorTemp), Units.MIRED));
listener.updateChannelState(new ChannelUID(getGroupUID(), COLOR_TEMP_CHANNEL_ID),
colorTempValue.getChannelState());
listener.updateChannelState(buildChannelUID(COLOR_TEMP_CHANNEL_ID), colorTempValue.getChannelState());

colorModeValue.update(new StringType(LightColorMode.COLOR_MODE_COLOR_TEMP.serializedName()));
}
Expand Down Expand Up @@ -282,8 +281,7 @@ public void updateChannelState(ChannelUID channel, State state) {
colorModeValue.update(new StringType(jsonState.colorMode.serializedName()));
}

listener.updateChannelState(new ChannelUID(getGroupUID(), COLOR_MODE_CHANNEL_ID),
colorModeValue.getChannelState());
listener.updateChannelState(buildChannelUID(COLOR_MODE_CHANNEL_ID), colorModeValue.getChannelState());

if (hasColorChannel) {
listener.updateChannelState(buildChannelUID(COLOR_CHANNEL_ID), colorValue.getChannelState());
Expand Down

0 comments on commit 828d4e1

Please sign in to comment.