def brightness(self) -> int | None:
        """Return the brightness of this light between 0..255."""
        if self._data_point.is_valid:
            return self._data_point.brightness
        if self.is_restored and self._restored_state:
            return self._restored_state.attributes.get(ATTR_BRIGHTNESS)
        return None
Return the brightness of this light between 0..255.
custom_components/homematicip_local/light.py