def _brightness_pct_default(self, dt: datetime.datetime) -> float:
        """Calculate the brightness percentage using the default method."""
        sun_position = self.sun.sun_position(dt)
        if sun_position > 0:
            return self.max_brightness
        delta_brightness = self.max_brightness - self.min_brightness
        return (delta_brightness * (1 + sun_position)) + self.min_brightness
Calculate the brightness percentage using the default method.
webapp/color_and_brightness.py