[upnpcontrol] Set thingStatus UNKNOWN in intialize (#12880)

* Set thingStatus UNKNOWN in intialize

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
This commit is contained in:
Mark Herwege 2022-06-04 23:32:51 +02:00 committed by GitHub
parent d7db798a6f
commit 62bb809f76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View 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 {