title: AttributeError: 'list' object has no attribute 'device'
body: <p>I want to make a tts script to my google home i saw a youtube video on it and really wanted to make it but when i executed the code i got this error and i dont know how to fix it <code>AttributeError: 'list' object has no attribute 'device'</code></p>
  <p>here is the code that i used (only the part were i got the error)</p>
  <pre><code>CastDevice = pychromecast.get_chromecasts()
  cast = next(cc for cc in CastDevice if cc.device.friendly_name == 'Rum')
  cast.wait()
  media = cast.media_controller
  media.play_media(r.url, content_type='audio/mp3')
  media.block_until_active()
  media.play()
  </code></pre>