Having issues with platform cast

Error while setting up platform cast
Traceback (most recent call last):
File “/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py”, line 128, in _async_setup_platform
SLOW_SETUP_MAX_WAIT, loop=hass.loop)
File “/usr/local/lib/python3.6/asyncio/tasks.py”, line 358, in wait_for
return fut.result()
File “/usr/local/lib/python3.6/site-packages/homeassistant/components/media_player/cast.py”, line 216, in async_setup_entry
config = hass.data[CAST_DOMAIN].get(‘media_player’, {})
AttributeError: ‘NodeListClass’ object has no attribute ‘get’

In cast.yaml (with correct IP):

  - media_player:
    host: x.x.x.x
  - media_player:
    host: x.x.x.x

I know someone can help me :slight_smile: