home-assistant-libs / pychromecast

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

cast.media_controller.update_status() puts blackscreen with blue chromecast logo on chromecasts #643

Open soreau opened 2 years ago

soreau commented 2 years ago

With chromecast 1st gen at least, calling cast.media_controller.update_status() puts a black screen with blue chromecast logo as if it's going to play something, on chromecasts that aren't playing anything and showing background. In past versions of pychromecast, the media status handler was called automatically on connect and this did not happen but now with latest (12.1.4) I have to call update_status(), which makes the chromecasts black screen. I haven't checked the code for this yet. Any idea why this might be happening?

soreau commented 2 years ago

This is a workaround:

if chromecast.media_controller.is_playing:
    chromecast.media_controller.update_status()

but it would still be nice to know why this happens.