fix(yandexweather): fix yandexweather parser

This commit is contained in:
2026-08-28 10:13:05 +03:00
parent 60c0a7a6fc
commit 9f5c43ce92
+5 -3
View File
@@ -37,11 +37,13 @@ def parse_sky(sky: str) -> Sky:
elif sky == "пасмурно":
cloudness = Cloudness.MAINLY_CLOUDY
elif sky == "небольшой дождь":
precipitation = Precipitation.RAIN
elif sky == "дождь":
precipitation = Precipitation.SMALL_RAIN
elif sky == "дождь":
precipitation = Precipitation.RAIN
elif sky == "ливень":
precipitation = Precipitation.SHOWER
else:
logger.warning("unknown sky value: %s:", sky)
logger.warning("unknown sky value: %s", sky)
return Sky(
cloudness=cloudness,
precipitation=precipitation,