'Init the manual alarm panel.'

def __init__(self, hass, name, code, pending_time, trigger_time, disarm_after_trigger):

    self._state = STATE_ALARM_DISARMED
    self._hass = hass
    self._name = name
    self._code = (str(code) if code else None)
    self._pending_time = datetime.timedelta(seconds=pending_time)
    self._trigger_time = datetime.timedelta(seconds=trigger_time)
    self._disarm_after_trigger = disarm_after_trigger
    self._pre_trigger_state = self._state
    self._state_ts = None
