diff --git a/bundles/org.openhab.binding.mqtt.homeassistant/src/main/java/org/openhab/binding/mqtt/homeassistant/internal/component/DefaultSchemaLight.java b/bundles/org.openhab.binding.mqtt.homeassistant/src/main/java/org/openhab/binding/mqtt/homeassistant/internal/component/DefaultSchemaLight.java index 3bca43f0031a3..ef5e12786273a 100644 --- a/bundles/org.openhab.binding.mqtt.homeassistant/src/main/java/org/openhab/binding/mqtt/homeassistant/internal/component/DefaultSchemaLight.java +++ b/bundles/org.openhab.binding.mqtt.homeassistant/src/main/java/org/openhab/binding/mqtt/homeassistant/internal/component/DefaultSchemaLight.java @@ -297,8 +297,7 @@ public void updateChannelState(ChannelUID channel, State state) { // channel. all the rest we can just check against the basic ID if (channel.equals(onOffChannel.getChannel().getUID())) { if (localColorChannel != null) { - HSBType newOnState = colorValue.getChannelState() instanceof HSBType newOnStateTmp - ? newOnStateTmp + HSBType newOnState = colorValue.getChannelState() instanceof HSBType newOnStateTmp ? newOnStateTmp : HSBType.WHITE; if (state.equals(OnOffType.ON)) { colorValue.update(newOnState);