]> git.basschouten.com Git - openhab-addons.git/commitdiff
[upnpcontrol] Set thingStatus UNKNOWN in intialize (#12880)
authorMark Herwege <mherwege@users.noreply.github.com>
Sat, 4 Jun 2022 21:32:51 +0000 (23:32 +0200)
committerGitHub <noreply@github.com>
Sat, 4 Jun 2022 21:32:51 +0000 (23:32 +0200)
* Set thingStatus UNKNOWN in intialize

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
bundles/org.openhab.binding.upnpcontrol/src/main/java/org/openhab/binding/upnpcontrol/internal/handler/UpnpHandler.java

index d73c98e41a0c24349e404cbd01c17c305e419130..0c3f3cc1eb6ee42f295fdf3e6a93d96b31ae79ea 100644 (file)
@@ -191,6 +191,8 @@ public abstract class UpnpHandler extends BaseThingHandler implements UpnpIOPart
     protected void initDevice() {
         String udn = getUDN();
         if ((udn != null) && !udn.isEmpty()) {
+            updateStatus(ThingStatus.UNKNOWN);
+
             if (config.refresh == 0) {
                 upnpScheduler.submit(this::initJob);
             } else {