'Initialize HarmonyRemote class.'

def __init__(self, name, host, port, activity, out_path, token):

    import pyharmony
    from pathlib import Path
    _LOGGER.debug('HarmonyRemote    device    init    started    for:    %s', name)
    self._name = name
    self.host = host
    self._port = port
    self._state = None
    self._current_activity = None
    self._default_activity = activity
    self._token = token
    self._config_path = out_path
    _LOGGER.debug('Retrieving    harmony    config    using    token:    %s', token)
    self._config = pyharmony.ha_get_config(self._token, host, port)
    if (not Path(self._config_path).is_file()):
        _LOGGER.debug('Writing    harmony    configuration    to    file:    %s', out_path)
        pyharmony.ha_write_config_file(self._config, self._config_path)
