diff --git a/openevsehttp/__init__.py b/openevsehttp/__init__.py index a628a1b..838a793 100644 --- a/openevsehttp/__init__.py +++ b/openevsehttp/__init__.py @@ -688,7 +688,7 @@ def max_current_soft(self) -> int | None: """Return the firmware version.""" if self._config is not None and "max_current_soft" in self._config: return self._config["max_current_soft"] - return None + return self._status["pilot"] @property def wifi_firmware(self) -> str: diff --git a/tests/test_init.py b/tests/test_init.py index 0a5f6f0..6d01bd7 100644 --- a/tests/test_init.py +++ b/tests/test_init.py @@ -903,7 +903,7 @@ async def test_vehicle_eta(fixture, expected, request): @pytest.mark.parametrize( - "fixture, expected", [("test_charger", 48), ("test_charger_v2", None)] + "fixture, expected", [("test_charger", 48), ("test_charger_v2", 25)] ) async def test_max_current_soft(fixture, expected, request): """Test max_current_soft reply."""