Skip to content

Commit

Permalink
[neato] Remove org.apache.common (#14415)
Browse files Browse the repository at this point in the history
Signed-off-by: lsiepel <[email protected]>
  • Loading branch information
lsiepel authored Feb 19, 2023
1 parent 5331615 commit 46f9d5e
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import java.util.concurrent.ScheduledFuture;
import java.util.concurrent.TimeUnit;

import org.apache.commons.lang3.ObjectUtils;
import org.eclipse.jdt.annotation.NonNull;
import org.openhab.binding.neato.internal.CouldNotFindRobotException;
import org.openhab.binding.neato.internal.NeatoBindingConstants;
Expand Down Expand Up @@ -146,7 +145,9 @@ private void publishChannels() {
updateProperty(Thing.PROPERTY_MODEL_ID, neatoState.getMeta().getModelName());

updateState(CHANNEL_STATE, new StringType(neatoState.getRobotState().name()));
updateState(CHANNEL_ERROR, new StringType((String) ObjectUtils.defaultIfNull(neatoState.getError(), "")));

String error = neatoState.getError() != null ? neatoState.getError() : "";
updateState(CHANNEL_ERROR, new StringType(error));
updateState(CHANNEL_ACTION, new StringType(neatoState.getRobotAction().name()));

Details details = neatoState.getDetails();
Expand Down

0 comments on commit 46f9d5e

Please sign in to comment.