fix updateState (#8580)

Signed-off-by: Hans Böhm <h.boehm@gmx.at>
This commit is contained in:
boehan
2020-10-06 19:50:37 +02:00
committed by GitHub
parent a980dbfb4d
commit cd16c680eb

View 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);