Skip to content

Refactor handling of discovered casts and device info #556

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Nov 15, 2021

Conversation

emontnemery
Copy link
Collaborator

@emontnemery emontnemery commented Nov 10, 2021

Breaking change

This is a breaking change if Chromecast objects are instantiated manually instead of via one of the discovery helpers

Refactor handling of discovered casts and device info

  • Simplify code paths by treating casts identified directly by a host:port pair same as auto discovered casts
  • Only poll casts via HTTP for device info once when creating Chromecast objects

See helper get_chromecast_from_host for how to instantiate a Chromecast object identified directly by a host:port pair

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants