#60 Fixed snow parsing.

This commit is contained in:
Alexey Zinchenko 2025-03-27 02:40:21 +04:00
parent 249ee09c7e
commit 185f4cbe8c

View File

@ -418,7 +418,7 @@ public class OneCallWeatherResponseMapper {
if (snowNode != null) {
final JsonNode OneHourNode = snowNode.get("1h");
if (OneHourNode != null) {
Rain.withOneHourLevelValue(OneHourNode.asDouble());
return Snow.withOneHourLevelValue(OneHourNode.asDouble());
}
}
return null;