feat(weather): new weather icons

This commit is contained in:
2026-06-14 17:14:31 +03:00
parent 2dfedfea57
commit 02a6ffc931
37 changed files with 1063 additions and 42 deletions

View File

@@ -67,7 +67,9 @@ class WindDirectionDeg(float):
# pylint:disable=too-many-return-statements
def to_direction(self) -> WindDirection:
if self > 337.5 or self <= 22.25:
if self == -1:
return WindDirection.CALM
elif self > 337.5 or self <= 22.25:
return WindDirection.N
elif self <= 67.5:
return WindDirection.NE
@@ -84,7 +86,7 @@ class WindDirectionDeg(float):
elif self <= 337.5:
return WindDirection.NW
else:
return WindDirection.CALM
raise ValueError(self)
@classmethod
def from_direction(cls, direction: WindDirection) -> "WindDirectionDeg":