mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
[kostalinverter] Fix exception due to invalid thing status update (#14386)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
This commit is contained in:
parent
b9a7e1f346
commit
e62503f8a4
@ -327,7 +327,7 @@ public class ThirdGenerationHandler extends BaseThingHandler {
|
||||
if (statusCode == 503) {
|
||||
// internal communication error
|
||||
// This can happen if the device is not ready yet for communication
|
||||
updateStatus(ThingStatus.UNINITIALIZED);
|
||||
updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.OFFLINE.COMMUNICATION_ERROR);
|
||||
return;
|
||||
}
|
||||
} catch (InterruptedException | TimeoutException | ExecutionException e) {
|
||||
|
Loading…
Reference in New Issue
Block a user