Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion openevsehttp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Expand Down