[neato] Remove org.apache.common (#14415)

Signed-off-by: lsiepel <leosiepel@gmail.com>
This commit is contained in:
lsiepel 2023-02-19 22:04:49 +01:00 committed by GitHub
parent 5331615359
commit 46f9d5eab7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -17,7 +17,6 @@ import static org.openhab.binding.neato.internal.NeatoBindingConstants.*;
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;
@ -146,7 +145,9 @@ public class NeatoHandler extends BaseThingHandler {
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();