[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:
Cody Cutrer 2023-11-18 15:38:52 -07:00 committed by GitHub
parent 96470d4448
commit 8ca03bd5c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -249,8 +249,7 @@ public class JSONSchemaLight extends AbstractRawSchemaLight {
if (jsonState.colorTemp != null) { if (jsonState.colorTemp != null) {
colorTempValue.update(new QuantityType(Objects.requireNonNull(jsonState.colorTemp), Units.MIRED)); colorTempValue.update(new QuantityType(Objects.requireNonNull(jsonState.colorTemp), Units.MIRED));
listener.updateChannelState(new ChannelUID(getGroupUID(), COLOR_TEMP_CHANNEL_ID), listener.updateChannelState(buildChannelUID(COLOR_TEMP_CHANNEL_ID), colorTempValue.getChannelState());
colorTempValue.getChannelState());
colorModeValue.update(new StringType(LightColorMode.COLOR_MODE_COLOR_TEMP.serializedName())); 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())); colorModeValue.update(new StringType(jsonState.colorMode.serializedName()));
} }
listener.updateChannelState(new ChannelUID(getGroupUID(), COLOR_MODE_CHANNEL_ID), listener.updateChannelState(buildChannelUID(COLOR_MODE_CHANNEL_ID), colorModeValue.getChannelState());
colorModeValue.getChannelState());
if (hasColorChannel) { if (hasColorChannel) {
listener.updateChannelState(buildChannelUID(COLOR_CHANNEL_ID), colorValue.getChannelState()); listener.updateChannelState(buildChannelUID(COLOR_CHANNEL_ID), colorValue.getChannelState());