'Update alarm status.'

def update(self):

    hub.update_overview()
    status = hub.get_first('$.armState.statusType')
    if (status == 'DISARMED'):
        self._state = STATE_ALARM_DISARMED
    elif (status == 'ARMED_HOME'):
        self._state = STATE_ALARM_ARMED_HOME
    elif (status == 'ARMED_AWAY'):
        self._state = STATE_ALARM_ARMED_AWAY
    elif (status != 'PENDING'):
        _LOGGER.error('Unknown    alarm    state    %s', status)
    self._changed_by = hub.get_first('$.armState.name')
