'Return the state of the device.'

def update(self):

    status = self._client.get_armed_status()
    if (status == self._client.DISARMED):
        state = STATE_ALARM_DISARMED
    elif (status == self._client.ARMED_STAY):
        state = STATE_ALARM_ARMED_HOME
    elif (status == self._client.ARMED_AWAY):
        state = STATE_ALARM_ARMED_AWAY
    else:
        state = STATE_UNKNOWN
    self._state = state
