From 828d4e1f71046f7b6d7f1cbd7229f05c49ebcfb6 Mon Sep 17 00:00:00 2001 From: Cody Cutrer Date: Sat, 18 Nov 2023 15:32:23 -0700 Subject: [PATCH] [mqtt.homeassistant] fix compilation problems Due to #15427 and #14839 being developed independently, but merged to main successively Signed-off-by: Cody Cutrer --- .../homeassistant/internal/component/JSONSchemaLight.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/bundles/org.openhab.binding.mqtt.homeassistant/src/main/java/org/openhab/binding/mqtt/homeassistant/internal/component/JSONSchemaLight.java b/bundles/org.openhab.binding.mqtt.homeassistant/src/main/java/org/openhab/binding/mqtt/homeassistant/internal/component/JSONSchemaLight.java index 5c89fc6e4dd4c..8a270d01e01c7 100644 --- a/bundles/org.openhab.binding.mqtt.homeassistant/src/main/java/org/openhab/binding/mqtt/homeassistant/internal/component/JSONSchemaLight.java +++ b/bundles/org.openhab.binding.mqtt.homeassistant/src/main/java/org/openhab/binding/mqtt/homeassistant/internal/component/JSONSchemaLight.java @@ -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())); } @@ -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());