diff --git a/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/communicator/AbstractHomematicGateway.java b/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/communicator/AbstractHomematicGateway.java index 977343afca0..cf4d59f5b09 100644 --- a/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/communicator/AbstractHomematicGateway.java +++ b/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/communicator/AbstractHomematicGateway.java @@ -471,13 +471,13 @@ public abstract class AbstractHomematicGateway implements RpcEventListener, Home @Override public void loadChannelValues(HmChannel channel) throws IOException { if (channel.getDevice().isGatewayExtras()) { - if (channel.getNumber() != HmChannel.CHANNEL_NUMBER_EXTRAS) { + if (!HmChannel.CHANNEL_NUMBER_EXTRAS.equals(channel.getNumber())) { List datapoints = channel.getDatapoints(); - if (channel.getNumber() == HmChannel.CHANNEL_NUMBER_VARIABLE) { + if (HmChannel.CHANNEL_NUMBER_VARIABLE.equals(channel.getNumber())) { loadVariables(channel); logger.debug("Loaded {} gateway variable(s)", datapoints.size()); - } else if (channel.getNumber() == HmChannel.CHANNEL_NUMBER_SCRIPT) { + } else if (HmChannel.CHANNEL_NUMBER_SCRIPT.equals(channel.getNumber())) { loadScripts(channel); logger.debug("Loaded {} gateway script(s)", datapoints.size()); } @@ -750,9 +750,9 @@ public abstract class AbstractHomematicGateway implements RpcEventListener, Home } @Override - public void newDevices(List adresses) { + public void newDevices(List addresses) { if (initialized && newDeviceEventsEnabled) { - for (String address : adresses) { + for (String address : addresses) { try { logger.debug("New device '{}' detected on gateway with id '{}'", address, id); List deviceDescriptions = getDeviceDescriptions();