feat(weather): add hail precipitation variant

This commit is contained in:
2026-07-02 02:59:49 +03:00
parent a3fab92e3d
commit 13a70990e5
7 changed files with 124 additions and 8 deletions

View File

@@ -48,6 +48,7 @@ def cloudness_icon(sky: Sky, date: datetime.datetime, period: str) -> list[str]:
Precipitation.SHOWER: "rain",
Precipitation.SNOW: "snow",
Precipitation.HEAVY_SNOW: "snow",
Precipitation.HAIL: "hail",
}[sky.precipitation]
if sky.cloudness == Cloudness.PARTLY_CLOUDY:
main_icon = f"{day_prefix}-{main_icon}"