home-assistant-libs / pychromecast

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

Fix known_hosts for older chromecasts #762

Closed domenipavec closed 9 months ago

domenipavec commented 9 months ago

Older chromecasts (for example my Nvidia Shield TV) don't support secure /setup/eureka_info endpoint. That's why they don't get detected with known_hosts option in current implementation. There are several issues related to that (e.g. https://github.com/home-assistant-libs/pychromecast/issues/611)

This PR does the following:

emontnemery commented 9 months ago

@domenipavec can you confirm you have tested your changes both with your Nvidia Shield TV and with some device which does support secure /setup/eureka_info endpoint? Also, can you please fix the lint errors so CI passes. I strongly recommend to run the linters locally since I have to approve CI since this is your first PR.

domenipavec commented 9 months ago

@emontnemery Yes, this has been tested both with Nvidia Shield TV that uses insecure endpoint and with Google Home Mini and Chromecast with Google TV that use secure endpoint.

Lint errors should be fixed now.

domenipavec commented 9 months ago

@emontnemery When can we expect a new release with this changes?