[wemo] Fix receiving empty binary state during poll (#11679)
Signed-off-by: Hans-Jörg Merk <github@hmerk.de>
This commit is contained in:
parent
384fdad56e
commit
7fbcd714c0
|
@ -421,10 +421,12 @@ public class WemoHandler extends AbstractWemoHandler implements UpnpIOParticipan
|
|||
} else {
|
||||
value = substringBetween(wemoCallResponse, "<BinaryState>", "</BinaryState>");
|
||||
}
|
||||
if (value.length() != 0) {
|
||||
logger.trace("New state '{}' for device '{}' received", value, getThing().getUID());
|
||||
this.onValueReceived(variable, value, actionService + "1");
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (Exception e) {
|
||||
logger.error("Failed to get actual state for device '{}': {}", getThing().getUID(), e.getMessage());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue