'Update the state with errors.'

def notify_errors(self, request_id, error):

    if (not self._validate_request_id(request_id)):
        return
    entity_id = self._requests[request_id][0]
    state = self.hass.states.get(entity_id)
    new_data = dict(state.attributes)
    new_data[ATTR_ERRORS] = error
    self.hass.states.set(entity_id, STATE_CONFIGURE, new_data)
