def __init__(self, hass, host, name):
        """Initalize the nx584 alarm panel."""
        from nx584 import client
        self._hass = hass
        self._host = host
        self._name = name
        self._alarm = client.Client('http://%s' % host)
        # Do an initial list operation so that we will try to actually
        # talk to the API and trigger a requests exception for setup_platform()
        # to catch
        self._alarm.list_zones()
dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/alarm_control_panel/nx584.py/NX584Alarm.__init__/original