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",