def __init__(self, host, port, name, timeout, mac, uuid):
    'Initialize the Samsung device.'
    from samsungctl import exceptions
    from samsungctl import Remote
    import wakeonlan
    self._exceptions_class = exceptions
    self._remote_class = Remote
    self._name = name
    self._mac = mac
    self._uuid = uuid
    self._wol = wakeonlan
    self._muted = False
    self._playing = True
    self._state = None
    self._remote = None
    self._end_of_power_off = None
    self._config = {'name': 'HomeAssistant', 'description': name, 'id': 'ha.component.samsung', 'port': port, 'host': host, 'timeout': timeout}
    if (self._config['port'] in (8001, 8002)):
        self._config['method'] = 'websocket'
    else:
        self._config['method'] = 'legacy'
Initialize the Samsung device.
def __init__(self, host, port, name, timeout, mac, uuid):
    
    from samsungctl import exceptions
    from samsungctl import Remote
    import wakeonlan
    self._exceptions_class = exceptions
    self._remote_class = Remote
    self._name = name
    self._mac = mac
    self._uuid = uuid
    self._wol = wakeonlan
    self._muted = False
    self._playing = True
    self._state = None
    self._remote = None
    self._end_of_power_off = None
    self._config = {'name': 'HomeAssistant', 'description': name, 'id': 'ha.component.samsung', 'port': port, 'host': host, 'timeout': timeout}
    if (self._config['port'] in (8001, 8002)):
        self._config['method'] = 'websocket'
    else:
        self._config['method'] = 'legacy'