'Return the state of the sensor.'

@property
def state(self):

    if self._unit_of_measurement_mismatch:
        return STATE_UNKNOWN
    return getattr(self, next((k for (k, v) in SENSOR_TYPES.items() if (self._sensor_type == v))))
