mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 07:02:02 +01:00
Fix SAT errors (#18047)
Signed-off-by: Leo Siepel <leosiepel@gmail.com>
This commit is contained in:
parent
8a442d9aff
commit
7639b1c3e5
@ -12,12 +12,15 @@
|
|||||||
*/
|
*/
|
||||||
package org.openhab.binding.digiplex.internal;
|
package org.openhab.binding.digiplex.internal;
|
||||||
|
|
||||||
|
import org.eclipse.jdt.annotation.NonNullByDefault;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The {@link DigiplexAreaConfiguration} class contains fields mapping area configuration parameters.
|
* The {@link DigiplexAreaConfiguration} class contains fields mapping area configuration parameters.
|
||||||
*
|
*
|
||||||
* @author Robert Michalak - Initial contribution
|
* @author Robert Michalak - Initial contribution
|
||||||
*/
|
*/
|
||||||
|
@NonNullByDefault
|
||||||
public class DigiplexAreaConfiguration {
|
public class DigiplexAreaConfiguration {
|
||||||
|
|
||||||
public int refreshPeriod;
|
public int refreshPeriod = 60;
|
||||||
}
|
}
|
||||||
|
@ -12,13 +12,16 @@
|
|||||||
*/
|
*/
|
||||||
package org.openhab.binding.digiplex.internal;
|
package org.openhab.binding.digiplex.internal;
|
||||||
|
|
||||||
|
import org.eclipse.jdt.annotation.NonNullByDefault;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The {@link DigiplexBridgeConfiguration} class contains fields mapping bridge configuration parameters.
|
* The {@link DigiplexBridgeConfiguration} class contains fields mapping bridge configuration parameters.
|
||||||
*
|
*
|
||||||
* @author Robert Michalak - Initial contribution
|
* @author Robert Michalak - Initial contribution
|
||||||
*/
|
*/
|
||||||
|
@NonNullByDefault
|
||||||
public class DigiplexBridgeConfiguration {
|
public class DigiplexBridgeConfiguration {
|
||||||
|
|
||||||
public String port;
|
public String port = "";
|
||||||
public int baudrate;
|
public int baudrate = 2400;
|
||||||
}
|
}
|
||||||
|
@ -102,7 +102,7 @@ public class DigiplexBridgeHandler extends BaseBridgeHandler implements SerialPo
|
|||||||
@Override
|
@Override
|
||||||
public void initialize() {
|
public void initialize() {
|
||||||
config = getConfigAs(DigiplexBridgeConfiguration.class);
|
config = getConfigAs(DigiplexBridgeConfiguration.class);
|
||||||
if (config.port == null) {
|
if (config.port.isBlank()) {
|
||||||
updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.OFFLINE.CONFIGURATION_ERROR, "Port must be set!");
|
updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.OFFLINE.CONFIGURATION_ERROR, "Port must be set!");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user