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:
lo92fr
2025-11-04 21:30:29 +01:00
committed by GitHub
parent b1670ec2fa
commit 87d9a08a7a
@@ -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) {