Verified Commit 227309d6 authored by Sumner Evans's avatar Sumner Evans 💬
Browse files

Handle Stop Casting better

parent 93de32c8
Pipeline #118318875 passed with stages
in 11 minutes and 48 seconds
......@@ -342,7 +342,10 @@ class ChromecastPlayer(Player):
status.volume_level * 100 if not status.volume_muted else 0,
))
# This normally happens when "Stop Casting" is pressed in the Google
# Home app.
if status.session_id is None:
self.on_player_event(PlayerEvent('play_state_change', False))
self._song_loaded = False
def on_new_media_status(self, status):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment