mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 23:22:02 +01:00
[mqtt.homeassistant] fix compilation problems (#15915)
Due to #15427 and #14839 being developed independently, but merged to main successively Signed-off-by: Cody Cutrer <cody@cutrer.us>
This commit is contained in:
parent
96470d4448
commit
8ca03bd5c7
@ -249,8 +249,7 @@ public class JSONSchemaLight extends AbstractRawSchemaLight {
|
||||
|
||||
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()));
|
||||
}
|
||||
@ -282,8 +281,7 @@ public class JSONSchemaLight extends AbstractRawSchemaLight {
|
||||
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());
|
||||
|
Loading…
Reference in New Issue
Block a user