Skip to content

Commit a764c64

Browse files
authored
Merge pull request #377 from fersingb/fersingb-patch-1
Don't call weather api twice
2 parents 6f0cb89 + 8e4b680 commit a764c64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyhilo/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -762,4 +762,4 @@ async def get_weather(self, location_id: int) -> dict[str, Any]:
762762
LOG.debug("Weather URL is %s", url)
763763
response = await self.async_request("get", url)
764764
LOG.debug("Weather API response: %s", response)
765-
return cast(dict[str, Any], await self.async_request("get", url))
765+
return cast(dict[str, Any], response)

0 commit comments

Comments
 (0)