]> git.basschouten.com Git - openhab-addons.git/commitdiff
[kostalinverter] Fix exception due to invalid thing status update (#14386)
authorJacob Laursen <jacob-github@vindvejr.dk>
Sat, 18 Feb 2023 18:12:41 +0000 (19:12 +0100)
committerGitHub <noreply@github.com>
Sat, 18 Feb 2023 18:12:41 +0000 (19:12 +0100)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
bundles/org.openhab.binding.kostalinverter/src/main/java/org/openhab/binding/kostalinverter/internal/thirdgeneration/ThirdGenerationHandler.java

index 7d66418e8a25278a554f4a02a5b995501351c3b6..039b7bd06ff2fda8b78f0b178a99a55eef93f7fa 100644 (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) {