'Initialize the device.'

def __init__(self, hass, name, host, port, path, user, passwd):

    self._hass = hass
    self._name = name
    self._state = False
    self._url = 'http://{}:{}{}'.format(host, port, path)
    if (user is not None):
        self._auth = (user, passwd)
    else:
        self._auth = None
