From fc6011f3fe27390aae21068f1b0de2ed319fda99 Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Sat, 6 Jul 2019 15:23:46 +0200 Subject: [PATCH] Update chromecast.py --- music_assistant/modules/playerproviders/chromecast.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/music_assistant/modules/playerproviders/chromecast.py b/music_assistant/modules/playerproviders/chromecast.py index 2a468e78..1e29add3 100644 --- a/music_assistant/modules/playerproviders/chromecast.py +++ b/music_assistant/modules/playerproviders/chromecast.py @@ -400,7 +400,7 @@ class ChromecastProvider(PlayerProvider): LOGGER.info('stopping Chromecast discovery...') stop_discovery(browser) listener, browser = start_discovery(internal_callback) - mass.add_event_listener(internal_stop, 'system_shutdown') + self.mass.add_event_listener(internal_stop, 'system_shutdown') async def __chromecast_discovered(self, discovery_info): ''' callback when a (new) chromecast device is discovered ''' -- 2.34.1