]> git.basschouten.com Git - openhab-addons.git/commitdiff
fix updateState (#8580)
authorboehan <boehan@users.noreply.github.com>
Tue, 6 Oct 2020 17:50:37 +0000 (19:50 +0200)
committerGitHub <noreply@github.com>
Tue, 6 Oct 2020 17:50:37 +0000 (19:50 +0200)
Signed-off-by: Hans Böhm <h.boehm@gmx.at>
bundles/org.openhab.binding.comfoair/src/main/java/org/openhab/binding/comfoair/internal/ComfoAirHandler.java

index 1cafc3b82646b05c9b0b55fc69ece93dcc7153ce..f11d20ff7f6c4439f4b3e5ca3c9ea65303aaeec0 100644 (file)
@@ -78,8 +78,7 @@ public class ComfoAirHandler extends BaseThingHandler {
             if (changeCommand != null) {
                 Set<String> 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<ComfoAirCommand> affectedReadCommands = ComfoAirCommandType
                         .getAffectedReadCommands(channelId, keysToUpdate);