python-openevse-http 0.1.86__tar.gz → 0.1.88__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.86 → python_openevse_http-0.1.88}/PKG-INFO +1 -1
- {python_openevse_http-0.1.86 → python_openevse_http-0.1.88}/openevsehttp/__main__.py +8 -2
- {python_openevse_http-0.1.86 → python_openevse_http-0.1.88}/openevsehttp/websocket.py +1 -1
- {python_openevse_http-0.1.86 → python_openevse_http-0.1.88}/python_openevse_http.egg-info/PKG-INFO +1 -1
- {python_openevse_http-0.1.86 → python_openevse_http-0.1.88}/setup.py +1 -1
- {python_openevse_http-0.1.86 → python_openevse_http-0.1.88}/README.md +0 -0
- {python_openevse_http-0.1.86 → python_openevse_http-0.1.88}/openevsehttp/__init__.py +0 -0
- {python_openevse_http-0.1.86 → python_openevse_http-0.1.88}/openevsehttp/const.py +0 -0
- {python_openevse_http-0.1.86 → python_openevse_http-0.1.88}/openevsehttp/exceptions.py +0 -0
- {python_openevse_http-0.1.86 → python_openevse_http-0.1.88}/python_openevse_http.egg-info/SOURCES.txt +0 -0
- {python_openevse_http-0.1.86 → python_openevse_http-0.1.88}/python_openevse_http.egg-info/dependency_links.txt +0 -0
- {python_openevse_http-0.1.86 → python_openevse_http-0.1.88}/python_openevse_http.egg-info/not-zip-safe +0 -0
- {python_openevse_http-0.1.86 → python_openevse_http-0.1.88}/python_openevse_http.egg-info/requires.txt +0 -0
- {python_openevse_http-0.1.86 → python_openevse_http-0.1.88}/python_openevse_http.egg-info/top_level.txt +0 -0
- {python_openevse_http-0.1.86 → python_openevse_http-0.1.88}/setup.cfg +0 -0
|
@@ -231,8 +231,11 @@ class OpenEVSE:
|
|
|
231
231
|
|
|
232
232
|
def ws_start(self) -> None:
|
|
233
233
|
"""Start the websocket listener."""
|
|
234
|
-
if self.
|
|
235
|
-
|
|
234
|
+
if self.websocket:
|
|
235
|
+
if self._ws_listening and self.websocket.state == "connected":
|
|
236
|
+
raise AlreadyListening
|
|
237
|
+
if self._ws_listening and self.websocket.state != "connected":
|
|
238
|
+
self._ws_listening = False
|
|
236
239
|
self._start_listening()
|
|
237
240
|
|
|
238
241
|
def _start_listening(self):
|
|
@@ -480,6 +483,9 @@ class OpenEVSE:
|
|
|
480
483
|
# RAPI commands
|
|
481
484
|
_LOGGER.debug("Setting current via RAPI")
|
|
482
485
|
command = f"$SC {amps} N"
|
|
486
|
+
# Different parameters for older firmware
|
|
487
|
+
if self._version_check("2.9.1"):
|
|
488
|
+
command = f"$SC {amps} V"
|
|
483
489
|
response, msg = await self.send_command(command)
|
|
484
490
|
_LOGGER.debug("Set current response: %s", msg)
|
|
485
491
|
|
|
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
|