From aad84a3abe06d127918d09f2ad3b8f4264a9d02b Mon Sep 17 00:00:00 2001 From: Scott Gasch Date: Tue, 5 Oct 2021 07:48:09 -0700 Subject: Groups of google lights (kinda hacky, needs a rework), import auditing. --- cached/weather_data.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cached/weather_data.py') diff --git a/cached/weather_data.py b/cached/weather_data.py index 94a0131..8d49736 100644 --- a/cached/weather_data.py +++ b/cached/weather_data.py @@ -41,7 +41,7 @@ class WeatherData: date: datetime.date # The date high: float # The predicted high in F low: float # The predicted low in F - precipitation_inchs: float # Number of inches of precipitation / day + precipitation_inches: float # Number of inches of precipitation / day conditions: List[str] # Conditions per ~3h window most_common_condition: str # The most common condition icon: str # An icon to represent it @@ -108,7 +108,7 @@ class CachedWeatherData(persistent.Persistent): date = dt, high = float(parsed_json["main"]["temp_max"]), low = float(parsed_json["main"]["temp_min"]), - precipitation_inchs = p / 25.4, + precipitation_inches = p / 25.4, conditions = [condition], most_common_condition = condition, icon = icon, @@ -172,7 +172,7 @@ class CachedWeatherData(persistent.Persistent): date = dt, high = highs[dt], low = lows[dt], - precipitation_inchs = precip[dt] / 25.4, + precipitation_inches = precip[dt] / 25.4, conditions = conditions[dt], most_common_condition = most_common_condition, icon = icon -- cgit v1.3