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