def get_settings(
        self,
        is_sleep,
        transition,
    ) -> dict[str, float | int | tuple[float, float] | tuple[float, float, float]]:
        """Get all light settings.

        Calculating all values takes <0.5ms.
        """
        dt = utcnow() + timedelta(seconds=transition or 0)
        return self.brightness_and_color(dt, is_sleep)
Get all light settings.

        Calculating all values takes <0.5ms.
        
custom_components/adaptive_lighting/color_and_brightness.py