From 348763910747a54b2ec102778d3359a2ae0b40f1 Mon Sep 17 00:00:00 2001 From: Mark Herwege Date: Sat, 4 Jun 2022 23:32:51 +0200 Subject: [PATCH] [upnpcontrol] Set thingStatus UNKNOWN in intialize (#12880) * Set thingStatus UNKNOWN in intialize Signed-off-by: Mark Herwege --- .../binding/upnpcontrol/internal/handler/UpnpHandler.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bundles/org.openhab.binding.upnpcontrol/src/main/java/org/openhab/binding/upnpcontrol/internal/handler/UpnpHandler.java b/bundles/org.openhab.binding.upnpcontrol/src/main/java/org/openhab/binding/upnpcontrol/internal/handler/UpnpHandler.java index d73c98e41a0c2..0c3f3cc1eb6ee 100644 --- a/bundles/org.openhab.binding.upnpcontrol/src/main/java/org/openhab/binding/upnpcontrol/internal/handler/UpnpHandler.java +++ b/bundles/org.openhab.binding.upnpcontrol/src/main/java/org/openhab/binding/upnpcontrol/internal/handler/UpnpHandler.java @@ -191,6 +191,8 @@ private void cancelPollingJob() { protected void initDevice() { String udn = getUDN(); if ((udn != null) && !udn.isEmpty()) { + updateStatus(ThingStatus.UNKNOWN); + if (config.refresh == 0) { upnpScheduler.submit(this::initJob); } else {