mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
[rme] Remove org.apache.common (#14433)
Signed-off-by: Leo Siepel <leosiepel@gmail.com>
This commit is contained in:
parent
1fca7bfdc6
commit
a8c1d0927f
@ -15,7 +15,6 @@ package org.openhab.binding.rme.internal.handler;
|
||||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.openhab.binding.rme.internal.RMEBindingConstants.DataField;
|
||||
import org.openhab.core.io.transport.serial.SerialPortManager;
|
||||
import org.openhab.core.library.types.DecimalType;
|
||||
@ -24,6 +23,7 @@ import org.openhab.core.library.types.StringType;
|
||||
import org.openhab.core.thing.ChannelUID;
|
||||
import org.openhab.core.thing.Thing;
|
||||
import org.openhab.core.types.Command;
|
||||
import org.openhab.core.util.StringUtils;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
@ -79,7 +79,9 @@ public class RMEThingHandler extends SerialThingHandler {
|
||||
@Override
|
||||
public void onDataReceived(String receivedLine) {
|
||||
String line = StringUtils.chomp(receivedLine);
|
||||
|
||||
if (line == null) {
|
||||
line = "";
|
||||
}
|
||||
// little hack to overcome Locale limits of the RME Rain Manager
|
||||
// note to the attentive reader : should we add support for system
|
||||
// locale's in the Type classes? ;-)
|
||||
|
Loading…
Reference in New Issue
Block a user