mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 23:22:02 +01:00
[sonos] Fix discovery of Ikea SYYMFONISK models (#10323)
Fix #10313 Signed-off-by: Laurent Garnier <lg.hc@free.fr>
This commit is contained in:
parent
5f1dd38083
commit
a5a7070d71
@ -117,7 +117,10 @@ public class ZonePlayerDiscoveryParticipant implements UpnpDiscoveryParticipant
|
||||
}
|
||||
|
||||
private String getModelName(RemoteDevice device) {
|
||||
return SonosXMLParser.extractModelName(device.getDetails().getModelDetails().getModelName());
|
||||
// For Ikea SYMFONISK models, the model name now starts with "SYMFONISK" with recent firmwares
|
||||
// We can no more use extractModelName as it deletes the first word ("Sonos" for all other devices)
|
||||
return device.getDetails().getModelDetails().getModelName().toUpperCase().contains("SYMFONISK") ? "SYMFONISK"
|
||||
: SonosXMLParser.extractModelName(device.getDetails().getModelDetails().getModelName());
|
||||
}
|
||||
|
||||
private @Nullable String getSonosRoomName(RemoteDevice device) {
|
||||
|
Loading…
Reference in New Issue
Block a user