Skip to content

Commit

Permalink
Revert "[ihc] Improved command handling when controller is not ready (o…
Browse files Browse the repository at this point in the history
…penhab#10895)"

This reverts commit 2a683ed.
  • Loading branch information
dw-8 committed Jul 25, 2021
1 parent 57ace97 commit cf60791
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -202,21 +202,16 @@ public void handleCommand(ChannelUID channelUID, Command command) {
logger.debug("Received channel: {}, command: {}", channelUID, command);

if (ihc == null) {
logger.debug("Connection is not initialized, aborting resource value update for channel '{}'!", channelUID);
logger.warn("Connection is not initialized, abort resource value update for channel '{}'!", channelUID);
return;
}

if (ihc.getConnectionState() != ConnectionState.CONNECTED) {
logger.debug("Connection to controller is not open, aborting resource value update for channel '{}'!",
logger.warn("Connection to controller is not open, abort resource value update for channel '{}'!",
channelUID);
return;
}

if (thing.getStatus() != ThingStatus.ONLINE) {
logger.debug("Controller is not ONLINE, aborting resource value update for channel '{}'!", channelUID);
return;
}

switch (channelUID.getId()) {
case CHANNEL_CONTROLLER_STATE:
if (command.equals(RefreshType.REFRESH)) {
Expand Down

0 comments on commit cf60791

Please sign in to comment.