[kostalinverter] Fix exception due to invalid thing status update (#14386)

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
This commit is contained in:
Jacob Laursen 2023-02-18 19:12:41 +01:00 committed by GitHub
parent b9a7e1f346
commit e62503f8a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {