def sunrise(self, dt: datetime.date) -> datetime.datetime:
        """Return the (adjusted) sunrise time for the given datetime."""
        sunrise = (
            self.astral_location.sunrise(dt, local=False)
            if self.sunrise_time is None
            else self._replace_time(dt, self.sunrise_time)
        ) + self.sunrise_offset
        if self.min_sunrise_time is not None:
            min_sunrise = self._replace_time(dt, self.min_sunrise_time)
            sunrise = max(min_sunrise, sunrise)
        if self.max_sunrise_time is not None:
            max_sunrise = self._replace_time(dt, self.max_sunrise_time)
            sunrise = min(max_sunrise, sunrise)
        return sunrise
Return the (adjusted) sunrise time for the given datetime.
custom_components/adaptive_lighting/color_and_brightness.py