'Set the input source.'

def select_source(self, source):

    if (source in self._source_mapping):
        self._tv.setSource(self._source_mapping.get(source))
        self._source = source
        if (not self._tv.on):
            self._state = STATE_OFF
        self._watching_tv = bool((self._tv.source_id == 'tv'))
