From 29d6127d6426f7fd0e27d49f393dffb164fed86d Mon Sep 17 00:00:00 2001 From: Cody Cutrer Date: Mon, 7 Oct 2024 12:04:18 -0600 Subject: [PATCH] fix spotless Signed-off-by: Cody Cutrer --- .../homeassistant/internal/component/DefaultSchemaLight.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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);