refactor(easel): remove TagUtil
This commit is contained in:
@@ -71,6 +71,8 @@ class RP5WeatherApi(WeatherApi):
|
||||
for response in forecast:
|
||||
if response.date == date:
|
||||
return response
|
||||
if date == datetime.date.today():
|
||||
return WeatherResponse(location=location_id, date=date, period="day", values=[])
|
||||
raise ValueError(f"Unsupported date: {date}")
|
||||
|
||||
async def get_days(self, location_id: str, days: int) -> WeatherResponse:
|
||||
|
||||
Reference in New Issue
Block a user