home-assistant-libs / pychromecast

Library for Python 3 to communicate with the Google Chromecast.
MIT License
2.52k stars 378 forks source link

updating the examples in readme so the they don't throw errors about device not existing #737

Closed sophiathekitty closed 9 months ago

sophiathekitty commented 1 year ago

fixed the cc.device.friendly name to use cc.cast_info.friendly_name and removed the print(cast.device) because Chromecast objects don't have device anymore. saw that this has been an issue since at least last October #665

emontnemery commented 9 months ago

Thanks @sophiathekitty 👍

This was however also fixed by #751

FixThisB commented 9 months ago

Example is still broken, please merge the solutions provided here.

If you want to keep the sanity check output maybe include print(cast.cast_info) instead of scrapping print(cast.device) all together