Skip to content

Commit 63eac30

Browse files
theyoshgithub-actions[bot]
authored andcommitted
Python code is blacked
1 parent f43834b commit 63eac30

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

weather/openmeteo_com_weather.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -114,13 +114,9 @@ def _get_data(self):
114114

115115
# Hourly overrules daily.
116116
return_data["forecast"] = self.__process_daily_data(
117-
json_data.get("daily", []),
118-
self.__process_hourly_data(
119-
json_data.get("hourly", [])
120-
)
117+
json_data.get("daily", []), self.__process_hourly_data(json_data.get("hourly", []))
121118
)
122119

123-
124120
# Get history data
125121
now = datetime.now()
126122
start_date = (now - timedelta(days=2)).strftime("%Y-%m-%d")
@@ -160,7 +156,7 @@ def __process_daily_data(self, data, hourly):
160156
time = datetime.fromisoformat(time).replace(microsecond=0)
161157

162158
if time.isoformat() in daily_data:
163-
daily_data[time.isoformat()]['sun'] = {
159+
daily_data[time.isoformat()]["sun"] = {
164160
"rise": datetime.fromisoformat(data["sunrise"][counter]),
165161
"set": datetime.fromisoformat(data["sunset"][counter]),
166162
}

0 commit comments

Comments
 (0)