def native_value(self) -> StateType | date | datetime | Decimal:
        """Return the native value of the entity."""
        if self._data_point.is_valid:
            if (
                self._data_point.value is not None
                and self._data_point.hmtype in (ParameterType.FLOAT, ParameterType.INTEGER)
                and self._multiplier != DEFAULT_MULTIPLIER
            ):
                new_value = self._data_point.value * self._multiplier
                return int(new_value) if self._data_point.hmtype == ParameterType.INTEGER else new_value
            # Strings and enums with custom device class must be lowercase
            # to be translatable.
            if (
                self._data_point.value is not None
                and self.translation_key is not None
                and self._data_point.hmtype in (ParameterType.ENUM, ParameterType.STRING)
            ):
                return cast(StateType | date | datetime | Decimal, self._data_point.value.lower())
            return cast(StateType | date | datetime | Decimal, self._data_point.value)
        if self.is_restored:
            return cast(StateType | date | datetime | Decimal, self._restored_native_value)
        return None
Return the native value of the entity.
custom_components/homematicip_local/sensor.py