From: boehan Date: Tue, 6 Oct 2020 17:50:37 +0000 (+0200) Subject: fix updateState (#8580) X-Git-Url: https://git.basschouten.com/?a=commitdiff_plain;h=cd16c680eb7a9669915f10cab5df5fe51f4bf096;p=openhab-addons.git fix updateState (#8580) Signed-off-by: Hans Böhm --- diff --git a/bundles/org.openhab.binding.comfoair/src/main/java/org/openhab/binding/comfoair/internal/ComfoAirHandler.java b/bundles/org.openhab.binding.comfoair/src/main/java/org/openhab/binding/comfoair/internal/ComfoAirHandler.java index 1cafc3b826..f11d20ff7f 100644 --- a/bundles/org.openhab.binding.comfoair/src/main/java/org/openhab/binding/comfoair/internal/ComfoAirHandler.java +++ b/bundles/org.openhab.binding.comfoair/src/main/java/org/openhab/binding/comfoair/internal/ComfoAirHandler.java @@ -78,8 +78,7 @@ public class ComfoAirHandler extends BaseThingHandler { if (changeCommand != null) { Set keysToUpdate = getThing().getChannels().stream().map(Channel::getUID).filter(this::isLinked) .map(ChannelUID::getId).collect(Collectors.toSet()); - State state = sendCommand(changeCommand, channelId); - updateState(channelUID, state); + sendCommand(changeCommand, channelId); Collection affectedReadCommands = ComfoAirCommandType .getAffectedReadCommands(channelId, keysToUpdate);