From a875d047619acb47b1ed2eec2e288881967af87b Mon Sep 17 00:00:00 2001 From: "firstof9@gmail.com" Date: Sat, 9 Aug 2025 18:14:56 -0700 Subject: [PATCH] fix: fix firmare `2.9.1` RAPI command for `set_current` --- openevsehttp/__main__.py | 3 +++ setup.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/openevsehttp/__main__.py b/openevsehttp/__main__.py index 7cfad36..4cb56ae 100644 --- a/openevsehttp/__main__.py +++ b/openevsehttp/__main__.py @@ -480,6 +480,9 @@ async def set_current(self, amps: int = 6) -> None: # RAPI commands _LOGGER.debug("Setting current via RAPI") command = f"$SC {amps} N" + # Different parameters for older firmware + if self._version_check("2.9.1"): + command = f"$SC {amps} V" response, msg = await self.send_command(command) _LOGGER.debug("Set current response: %s", msg) diff --git a/setup.py b/setup.py index e51e5ff..14e173f 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ PROJECT_DIR = Path(__file__).parent.resolve() README_FILE = PROJECT_DIR / "README.md" -VERSION = "0.1.86" +VERSION = "0.1.87" setup( name="python_openevse_http",