'Turn on the ChromeCast.'

def turn_on(self):

    if ((not self.cast.status) or (not self.cast.status.is_active_input)):
        import pychromecast
        if self.cast.app_id:
            self.cast.quit_app()
        self.cast.play_media(CAST_SPLASH, pychromecast.STREAM_TYPE_BUFFERED)
