def get_night_light_brightness(self):
        """Return the brightness (0-255) of the night light."""
        if not self.camera_extended_properties:
            return None

        night_light = self.camera_extended_properties.get('nightLight')
        if not night_light:
            return None

        return night_light.get('brightness')
Return the brightness (0-255) of the night light.