It is recommended to remove that configuration and configure Sonos with the Configuration -> Integrations page in the UI. However, if you really want YAML, the new way is like this:
Thanks! The integration option doesn’t allow connecting to a Sonos device that cannot be auto-discovered, e.g. one on a different subnet, so I’m grateful for this option.