Fix cast turn on image (#66500)

This commit is contained in:
Paulus Schoutsen 2022-02-14 05:38:46 -08:00 committed by GitHub
parent db73ce92fa
commit 4c5d64762b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -411,7 +411,7 @@ class CastDevice(MediaPlayerEntity):
# The only way we can turn the Chromecast is on is by launching an app
if self._chromecast.cast_type == pychromecast.const.CAST_TYPE_CHROMECAST:
self._chromecast.play_media(CAST_SPLASH, pychromecast.STREAM_TYPE_BUFFERED)
self._chromecast.play_media(CAST_SPLASH, "image/png")
else:
self._chromecast.start_app(pychromecast.config.APP_MEDIA_RECEIVER)