[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:
parent
d7db798a6f
commit
62bb809f76
@ -191,6 +191,8 @@ public abstract class UpnpHandler extends BaseThingHandler implements UpnpIOPart
|
|||||||
protected void initDevice() {
|
protected void initDevice() {
|
||||||
String udn = getUDN();
|
String udn = getUDN();
|
||||||
if ((udn != null) && !udn.isEmpty()) {
|
if ((udn != null) && !udn.isEmpty()) {
|
||||||
|
updateStatus(ThingStatus.UNKNOWN);
|
||||||
|
|
||||||
if (config.refresh == 0) {
|
if (config.refresh == 0) {
|
||||||
upnpScheduler.submit(this::initJob);
|
upnpScheduler.submit(this::initJob);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user