Add shutdown method to chromecast
The default method for the services call stop, in the chromecast case this isn't desirable since any playing application would be shutdown (even if mycroft didn't initiate it).
This overrides default behaviour and will merely disconnect from the device at shutdown.
@@ -139,6 +139,10 @@ class ChromecastService(AudioBackend):
ret['album'] = ''
return ret
+ def shutdown(self):
+ """ Disconnect from the device. """
+ self.cast.disconnect()
+
def autodetect(config, emitter):
"""
