'Initialize the Sony Bravia device.'

def __init__(self, host, mac, name, pin):

    from braviarc import braviarc
    self._pin = pin
    self._braviarc = braviarc.BraviaRC(host, mac)
    self._name = name
    self._state = STATE_OFF
    self._muted = False
    self._program_name = None
    self._channel_name = None
    self._channel_number = None
    self._source = None
    self._source_list = []
    self._original_content_list = []
    self._content_mapping = {}
    self._duration = None
    self._content_uri = None
    self._id = None
    self._playing = False
    self._start_date_time = None
    self._program_media_type = None
    self._min_volume = None
    self._max_volume = None
    self._volume = None
    self._braviarc.connect(pin, CLIENTID_PREFIX, NICKNAME)
    if self._braviarc.is_connected():
        self.update()
    else:
        self._state = STATE_OFF
