mirror of
https://github.com/danieldemus/openhab-core.git
synced 2026-07-29 12:34:22 +02:00
Fix event handling for Genasubscription (#5114)
* fix for Sonos binding not working anymore because wrong match on event source device / participant Signed-off-by: Laurent ARNAL <laurent@clae.net>
This commit is contained in:
+3
-1
@@ -154,8 +154,10 @@ public class UpnpIOServiceImpl implements UpnpIOService, RegistryListener {
|
||||
|
||||
logger.trace("Receiving a GENA subscription '{}' response for device '{}'", serviceId,
|
||||
device.getIdentity().getUdn());
|
||||
|
||||
for (UpnpIOParticipant participant : participants) {
|
||||
if (Objects.equals(getDevice(participant), device)) {
|
||||
Device participantDevice = getDevice(participant);
|
||||
if (Objects.equals(participantDevice, device) || Objects.equals(participantDevice, device.getRoot())) {
|
||||
for (Entry<String, StateVariableValue> entry : values.entrySet()) {
|
||||
Object value = entry.getValue().getValue();
|
||||
if (value != null) {
|
||||
|
||||
Reference in New Issue
Block a user