[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) {
|
if (statusCode == 503) {
|
||||||
// internal communication error
|
// internal communication error
|
||||||
// This can happen if the device is not ready yet for communication
|
// This can happen if the device is not ready yet for communication
|
||||||
updateStatus(ThingStatus.UNINITIALIZED);
|
updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.OFFLINE.COMMUNICATION_ERROR);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
} catch (InterruptedException | TimeoutException | ExecutionException e) {
|
} catch (InterruptedException | TimeoutException | ExecutionException e) {
|
||||||
|
|
Loading…
Reference in New Issue