'Return the sensor state.'

@property
def state(self):

    if (self.type == SENSOR_TYPE_STATUS):
        return self._status_state
    if (self.type == SENSOR_TYPE_BATTERY):
        return self._battery_state
