def color_xy_to_hs(
    vX: float,
    vY: float,
    Gamut: GamutType | None = None,
) -> tuple[float, float]:
    """Convert an xy color to its hs representation."""
    h, s, _ = color_RGB_to_hsv(*color_xy_to_RGB(vX, vY, Gamut))
    return h, s
Convert an xy color to its hs representation.
webapp/homeassistant_util_color.py