'Initialize the Samsung device.'

def __init__(self, host, port, name, timeout, mac):

    from samsungctl import exceptions
    from samsungctl import Remote
    from wakeonlan import wol
    self._exceptions_class = exceptions
    self._remote_class = Remote
    self._name = name
    self._mac = mac
    self._wol = wol
    self._muted = False
    self._playing = True
    self._state = STATE_UNKNOWN
    self._remote = None
    self._config = {'name': 'HomeAssistant', 'description': name, 'id': 'ha.component.samsung', 'port': port, 'host': host, 'timeout': timeout}
    if (self._config['port'] == 8001):
        self._config['method'] = 'websocket'
    else:
        self._config['method'] = 'legacy'
