From: Jacob Laursen Date: Sat, 18 Feb 2023 18:12:41 +0000 (+0100) Subject: [kostalinverter] Fix exception due to invalid thing status update (#14386) X-Git-Url: https://git.basschouten.com/?a=commitdiff_plain;h=e62503f8a450583548794b6e80464d5fad37a5b9;p=openhab-addons.git [kostalinverter] Fix exception due to invalid thing status update (#14386) Signed-off-by: Jacob Laursen --- diff --git a/bundles/org.openhab.binding.kostalinverter/src/main/java/org/openhab/binding/kostalinverter/internal/thirdgeneration/ThirdGenerationHandler.java b/bundles/org.openhab.binding.kostalinverter/src/main/java/org/openhab/binding/kostalinverter/internal/thirdgeneration/ThirdGenerationHandler.java index 7d66418e8a..039b7bd06f 100644 --- a/bundles/org.openhab.binding.kostalinverter/src/main/java/org/openhab/binding/kostalinverter/internal/thirdgeneration/ThirdGenerationHandler.java +++ b/bundles/org.openhab.binding.kostalinverter/src/main/java/org/openhab/binding/kostalinverter/internal/thirdgeneration/ThirdGenerationHandler.java @@ -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) {