Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
Haoyu-UT committed Jul 29, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent a59796e commit 5587a63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/nature_remo/api.py
Original file line number Diff line number Diff line change
@@ -61,7 +61,7 @@ async def get(self, api: Api):
except ImportError:
pass
try:
response = await loop.run_in_executor(None, blocking_get, url)
response = await loop.run_in_executor(None, blocking_get, self.session, url)
except Exception as err:
raise NetworkError from err
else:
@@ -85,7 +85,7 @@ async def post(self, api: Api, params: list[str], data: dict):
except ImportError:
pass
try:
response = await loop.run_in_executor(None, blocking_post, url, data)
response = await loop.run_in_executor(None, blocking_post, self.session, url, data)
except Exception as err:
raise NetworkError from err
else:

0 comments on commit 5587a63

Please sign in to comment.