def sunset(self, dt: datetime.date) -> datetime.datetime:
        """Return the (adjusted) sunset time for the given datetime."""
        sunset = (
            self.astral_location.sunset(dt, local=False)
            if self.sunset_time is None
            else self._replace_time(dt, self.sunset_time)
        ) + self.sunset_offset
        if self.min_sunset_time is not None:
            min_sunset = self._replace_time(dt, self.min_sunset_time)
            sunset = max(min_sunset, sunset)
        if self.max_sunset_time is not None:
            max_sunset = self._replace_time(dt, self.max_sunset_time)
            sunset = min(max_sunset, sunset)
        return sunset
Return the (adjusted) sunset time for the given datetime.
custom_components/adaptive_lighting/color_and_brightness.py