[wemo] Fix receiving empty binary state during poll (#11679)

Signed-off-by: Hans-Jörg Merk <github@hmerk.de>
This commit is contained in:
Hans-Jörg Merk 2021-12-01 11:58:59 +01:00 committed by GitHub
parent 384fdad56e
commit 7fbcd714c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -421,8 +421,10 @@ public class WemoHandler extends AbstractWemoHandler implements UpnpIOParticipan
} else {
value = substringBetween(wemoCallResponse, "<BinaryState>", "</BinaryState>");
}
logger.trace("New state '{}' for device '{}' received", value, getThing().getUID());
this.onValueReceived(variable, value, actionService + "1");
if (value.length() != 0) {
logger.trace("New state '{}' for device '{}' received", value, getThing().getUID());
this.onValueReceived(variable, value, actionService + "1");
}
}
}
} catch (Exception e) {