Fabio Manganiello
e123463804
continuous-integration/drone/push Build is passing
Details
Explicitly use a `CastBrowser` object initialized at plugin boot instead of relying on blocking calls to `pychromecast.get_chromecasts`. 1. It enables better event handling via callbacks instead of synchronously waiting for scan batches. 2. It optimizes resources - only one Zeroconf and one CastBrowser object will be created in the plugin, and destroyed upon stop. 3. No need for separate `get_chromecast`/`_refresh_chromecasts` methods: all the scanning is run continuously, so we can just return the results from the maps. |
||
---|---|---|
.. | ||
__init__.py | ||
_listener.py | ||
_subtitles.py | ||
_utils.py | ||
manifest.yaml |