python-openevse-http 0.1.66__tar.gz → 0.1.67__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.66 → python_openevse_http-0.1.67}/PKG-INFO +1 -1
- {python_openevse_http-0.1.66 → python_openevse_http-0.1.67}/openevsehttp/__main__.py +4 -5
- {python_openevse_http-0.1.66 → python_openevse_http-0.1.67}/python_openevse_http.egg-info/PKG-INFO +1 -1
- {python_openevse_http-0.1.66 → python_openevse_http-0.1.67}/setup.py +1 -1
- {python_openevse_http-0.1.66 → python_openevse_http-0.1.67}/README.md +0 -0
- {python_openevse_http-0.1.66 → python_openevse_http-0.1.67}/openevsehttp/__init__.py +0 -0
- {python_openevse_http-0.1.66 → python_openevse_http-0.1.67}/openevsehttp/const.py +0 -0
- {python_openevse_http-0.1.66 → python_openevse_http-0.1.67}/openevsehttp/exceptions.py +0 -0
- {python_openevse_http-0.1.66 → python_openevse_http-0.1.67}/openevsehttp/websocket.py +0 -0
- {python_openevse_http-0.1.66 → python_openevse_http-0.1.67}/python_openevse_http.egg-info/SOURCES.txt +0 -0
- {python_openevse_http-0.1.66 → python_openevse_http-0.1.67}/python_openevse_http.egg-info/dependency_links.txt +0 -0
- {python_openevse_http-0.1.66 → python_openevse_http-0.1.67}/python_openevse_http.egg-info/not-zip-safe +0 -0
- {python_openevse_http-0.1.66 → python_openevse_http-0.1.67}/python_openevse_http.egg-info/requires.txt +0 -0
- {python_openevse_http-0.1.66 → python_openevse_http-0.1.67}/python_openevse_http.egg-info/top_level.txt +0 -0
- {python_openevse_http-0.1.66 → python_openevse_http-0.1.67}/setup.cfg +0 -0
|
@@ -239,8 +239,9 @@ class OpenEVSE:
|
|
|
239
239
|
_LOGGER.debug("Using new event loop...")
|
|
240
240
|
|
|
241
241
|
if not self._ws_listening:
|
|
242
|
+
_LOGGER.debug("Setting up websocket ping...")
|
|
243
|
+
self._loop.create_task(self.repeat(300, self.websocket.keepalive))
|
|
242
244
|
self._loop.create_task(self.websocket.listen())
|
|
243
|
-
self._loop.create_task(self.repeat(300, self.websocket.keepalive()))
|
|
244
245
|
pending = asyncio.all_tasks()
|
|
245
246
|
self._ws_listening = True
|
|
246
247
|
try:
|
|
@@ -311,10 +312,8 @@ class OpenEVSE:
|
|
|
311
312
|
*args and **kwargs are passed as the arguments to func.
|
|
312
313
|
"""
|
|
313
314
|
while True:
|
|
314
|
-
await asyncio.
|
|
315
|
-
|
|
316
|
-
asyncio.sleep(interval),
|
|
317
|
-
)
|
|
315
|
+
await asyncio.sleep(interval)
|
|
316
|
+
await func(*args, **kwargs)
|
|
318
317
|
|
|
319
318
|
async def get_schedule(self) -> Union[Dict[str, str], Dict[str, Any]]:
|
|
320
319
|
"""Return the current schedule."""
|
|
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
|
|
File without changes
|