home-assistant-libs/pychromecast

PyChromecast how to use page incorrectly shows "device" in examples

benbaez opened this issue · 1 comments

Since device was removed in 10.0.0, these should be changed from:

[cc.device.friendly_name for cc in chromecasts]

print(cast.device)

to

[cc.cast_info.friendly_name for cc in chromecasts]

print(cast.cast_info)

haha ran into the same issue - lifesaver:) they should really change this, it's miss leading and doesn't help new users starting to use this library!