'Return the state of the sensor.'

@property
def state(self):

    values = self.arest.data
    if ('error' in values):
        return values['error']
    value = self._renderer(values.get('value', values.get(self._variable, STATE_UNKNOWN)))
    return value
