Media Source implementation for Chromecast (#39305)

* Implement local media finder and integrate into cast

* update to media source as a platform

* Tweak media source design

* fix websocket and local source

* fix websocket schema

* fix playing media

* Apply suggestions from code review

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Add resolve_media websocket

* Register that shit

* Square brackets

* Sign path

* add support for multiple media sources and address PR review

* fix lint

* fix tests from auto whitelisting config/media

* allow specifying a name on the media source

* add tests

* fix for python 3.7

* Apply suggestions from code review

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>

* add http back to cast and remove guess_type from executor as there is no i/o

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
This commit is contained in:
authored and GitHub committed 2020-09-04 11:16:29 -04:00
1 parent f01a0f9151
commit f2b3e63ff6
18 files changed
+738 -6

No files matched your search

@@ -0,0 +1,10 @@
"""Errors for media source."""
from homeassistant.exceptions import HomeAssistantError
class MediaSourceError(HomeAssistantError):
"""Base class for media source errors."""
class Unresolvable(MediaSourceError):
"""When media ID is not resolvable."""