From e62503f8a450583548794b6e80464d5fad37a5b9 Mon Sep 17 00:00:00 2001 From: Jacob Laursen Date: Sat, 18 Feb 2023 19:12:41 +0100 Subject: [PATCH] [kostalinverter] Fix exception due to invalid thing status update (#14386) Signed-off-by: Jacob Laursen --- .../internal/thirdgeneration/ThirdGenerationHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 7d66418e8a2..039b7bd06ff 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) {