python-openevse-http 0.1.75__tar.gz → 0.1.76__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {python_openevse_http-0.1.75 → python_openevse_http-0.1.76}/PKG-INFO +1 -1
- {python_openevse_http-0.1.75 → python_openevse_http-0.1.76}/openevsehttp/__main__.py +6 -0
- {python_openevse_http-0.1.75 → python_openevse_http-0.1.76}/openevsehttp/websocket.py +1 -0
- {python_openevse_http-0.1.75 → python_openevse_http-0.1.76}/python_openevse_http.egg-info/PKG-INFO +1 -1
- {python_openevse_http-0.1.75 → python_openevse_http-0.1.76}/setup.py +1 -1
- {python_openevse_http-0.1.75 → python_openevse_http-0.1.76}/README.md +0 -0
- {python_openevse_http-0.1.75 → python_openevse_http-0.1.76}/openevsehttp/__init__.py +0 -0
- {python_openevse_http-0.1.75 → python_openevse_http-0.1.76}/openevsehttp/const.py +0 -0
- {python_openevse_http-0.1.75 → python_openevse_http-0.1.76}/openevsehttp/exceptions.py +0 -0
- {python_openevse_http-0.1.75 → python_openevse_http-0.1.76}/python_openevse_http.egg-info/SOURCES.txt +0 -0
- {python_openevse_http-0.1.75 → python_openevse_http-0.1.76}/python_openevse_http.egg-info/dependency_links.txt +0 -0
- {python_openevse_http-0.1.75 → python_openevse_http-0.1.76}/python_openevse_http.egg-info/not-zip-safe +0 -0
- {python_openevse_http-0.1.75 → python_openevse_http-0.1.76}/python_openevse_http.egg-info/requires.txt +0 -0
- {python_openevse_http-0.1.75 → python_openevse_http-0.1.76}/python_openevse_http.egg-info/top_level.txt +0 -0
- {python_openevse_http-0.1.75 → python_openevse_http-0.1.76}/setup.cfg +0 -0
|
@@ -91,6 +91,7 @@ class OpenEVSE:
|
|
|
91
91
|
self.websocket: OpenEVSEWebsocket | None = None
|
|
92
92
|
self.callback: Callable | None = None
|
|
93
93
|
self._loop = None
|
|
94
|
+
self.tasks = None
|
|
94
95
|
|
|
95
96
|
async def process_request(
|
|
96
97
|
self,
|
|
@@ -295,6 +296,11 @@ class OpenEVSE:
|
|
|
295
296
|
self._ws_listening = False
|
|
296
297
|
assert self.websocket
|
|
297
298
|
await self.websocket.close()
|
|
299
|
+
if self._loop:
|
|
300
|
+
try:
|
|
301
|
+
self._loop.cancel()
|
|
302
|
+
except AttributeError:
|
|
303
|
+
pass
|
|
298
304
|
|
|
299
305
|
def is_coroutine_function(self, callback):
|
|
300
306
|
"""Check if a callback is a coroutine function."""
|
|
@@ -142,6 +142,7 @@ class OpenEVSEWebsocket:
|
|
|
142
142
|
async def close(self):
|
|
143
143
|
"""Close the listening websocket."""
|
|
144
144
|
await OpenEVSEWebsocket.state.fset(self, STATE_STOPPED)
|
|
145
|
+
await self.session.close()
|
|
145
146
|
|
|
146
147
|
async def keepalive(self):
|
|
147
148
|
"""Send ping requests to websocket."""
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|