mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-25 14:55:55 +01:00
[cbus] Fix exceptions due to invalid thing status updates (#14385)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
This commit is contained in:
parent
1bc00a0dd8
commit
b9a7e1f346
@ -76,7 +76,7 @@ public class CBusCGateHandler extends BaseBridgeHandler {
|
||||
try {
|
||||
this.ipAddress = InetAddress.getByName(configuration.ipAddress);
|
||||
} catch (UnknownHostException e1) {
|
||||
updateStatus(ThingStatus.UNINITIALIZED, ThingStatusDetail.HANDLER_INITIALIZING_ERROR,
|
||||
updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.OFFLINE.COMMUNICATION_ERROR,
|
||||
"IP Address not resolvable");
|
||||
return;
|
||||
}
|
||||
|
@ -171,7 +171,7 @@ public class CBusNetworkHandler extends BaseBridgeHandler {
|
||||
}
|
||||
} catch (CGateException e) {
|
||||
logger.warn("Cannot load C-Bus network {}", networkID, e);
|
||||
updateStatus(ThingStatus.UNINITIALIZED, ThingStatusDetail.COMMUNICATION_ERROR);
|
||||
updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.OFFLINE.COMMUNICATION_ERROR);
|
||||
}
|
||||
updateStatus();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user