fix(gismeteo): fix gismeteo parser
This commit is contained in:
@@ -38,6 +38,8 @@ def cloudness_icon(sky: Sky) -> list[str]:
|
||||
Cloudness.CLOUDY: "⛅",
|
||||
Cloudness.MAINLY_CLOUDY: "☁️",
|
||||
}[sky.cloudness]
|
||||
elif sky.precipitation in [Precipitation.SNOW, Precipitation.HEAVY_SNOW]:
|
||||
main_icon = "🌨️"
|
||||
else:
|
||||
main_icon = "🌧️"
|
||||
icons = [main_icon]
|
||||
|
||||
Reference in New Issue
Block a user