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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

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