A yellow warning could hide an orange one simply because it appeared first in the district’s response. The Weather Alert sensor instead selects the most severe warning whose start and end times include the present moment, and shows its details.
@JorgeS15’s first contribution to Home Assistant Core also makes the state unknown when warnings cannot be retrieved. The correction avoids treating an alert published days ahead as a current condition.