Skip to content

Commit

Permalink
[upnpcontrol] Set thingStatus UNKNOWN in intialize (openhab#12880)
Browse files Browse the repository at this point in the history
* Set thingStatus UNKNOWN in intialize

Signed-off-by: Mark Herwege <[email protected]>
  • Loading branch information
mherwege authored and andan67 committed Nov 5, 2022
1 parent ba3365d commit 3487639
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 3487639

Please sign in to comment.