'Update our recording state from the ZM API.'

def update(self):

    _LOGGER.debug('Updating    camera    state    for    monitor    %i', self._monitor_id)
    status_response = zoneminder.get_state(('api/monitors/alarm/id:%i/command:status.json' % self._monitor_id))
    if (not status_response):
        _LOGGER.warning('Could    not    get    status    for    monitor    %i', self._monitor_id)
        return
    self._is_recording = (status_response.get('status') == ZM_STATE_ALARM)
