'Initialize the data oject.'

def __init__(self, hass, url, port, name, username, password):

    from pyhik.hikvision import HikCamera
    self._url = url
    self._port = port
    self._name = name
    self._username = username
    self._password = password
    self.camdata = HikCamera(self._url, self._port, self._username, self._password)
    if (self._name is None):
        self._name = self.camdata.get_name
    hass.bus.listen_once(EVENT_HOMEASSISTANT_STOP, self.stop_hik)
    hass.bus.listen_once(EVENT_HOMEASSISTANT_START, self.start_hik)
