From 734fd7641ee3dea79b35db88c2390da03fe19866 Mon Sep 17 00:00:00 2001 From: Richie Cahill Date: Sun, 14 Jun 2026 13:46:03 -0400 Subject: [PATCH] moved fetch_weather to masked lat lon and --- python/van_weather/main.py | 2 +- python/van_weather/models.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/python/van_weather/main.py b/python/van_weather/main.py index ef2952e..b15ea34 100644 --- a/python/van_weather/main.py +++ b/python/van_weather/main.py @@ -257,7 +257,7 @@ def update_weather(config: Config) -> None: logger.info(f"Masked location: {masked_lat}, {masked_lon}") - weather = fetch_weather(config.pirate_weather_api_key, lat, lon) + weather = fetch_weather(config.pirate_weather_api_key, masked_lat, masked_lon) logger.info(f"Weather: {weather.temperature}°F, {weather.condition}") post_to_ha(config.ha_url, config.ha_token, weather) diff --git a/python/van_weather/models.py b/python/van_weather/models.py index 5ee880a..671f995 100644 --- a/python/van_weather/models.py +++ b/python/van_weather/models.py @@ -1,6 +1,8 @@ """Models for van weather service.""" -from datetime import datetime +from __future__ import annotations + +from datetime import datetime # noqa: TC003 This is required for pydantic from pydantic import BaseModel, field_serializer