We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 735d090 commit 8317e8eCopy full SHA for 8317e8e
karcher/karcher.py
@@ -86,7 +86,7 @@ async def close(self):
86
self._mqtt = None
87
88
if self._http is not None:
89
- if self._http_external:
+ if not self._http_external:
90
self._http.close()
91
self._http = None
92
@@ -160,6 +160,7 @@ async def _download(self, url) -> bytes:
160
161
async def _process_response(self, resp: aiohttp.ClientResponse, prop=None) -> Any:
162
if resp.status != 200:
163
+ resp.close()
164
raise KarcherHomeException(-1,
165
'HTTP error: ' + str(resp.status))
166
data = await resp.json()
0 commit comments