Loading Sonos via platform config is deprecated

Hello
I received the following message:

2019-01-04 19:09:40 WARNING (SyncWorker_2) [homeassistant.components.media_player.sonos] Loading Sonos via platform config is deprecated.

I don’t know, what kind of mistake I’am doing.

I use Version 0.84.6 (Hass.io on Raspberry Pi 3 B +)

# Mediaplayer
media_player:
  - platform: sonos
    hosts:
      - 192.168.178.33
      - 192.168.178.38

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:

sonos:
  media_player:
    hosts:
      - 192.168.178.33
      - 192.168.178.38
1 Like

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.