'Initialize the Cast device.'

def __init__(self, chromecast):

    self.cast = chromecast
    self.cast.socket_client.receiver_controller.register_status_listener(self)
    self.cast.socket_client.media_controller.register_status_listener(self)
    self.cast_status = self.cast.status
    self.media_status = self.cast.media_controller.status
    self.media_status_received = None
