Skip to content

Commit 7cbe54f

Browse files
committed
feat: create unprotected version_check function
1 parent 05c2a31 commit 7cbe54f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

openevsehttp/__main__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -648,6 +648,10 @@ def _version_check(self, min_version: str, max_version: str = "") -> bool:
648648
except AwesomeVersionCompareException:
649649
_LOGGER.debug("Non-semver firmware version detected.")
650650
return False
651+
652+
def version_check(self, min_version: str, max_version: str = "") -> bool:
653+
"""Unprotected function call for version checking."""
654+
return self._version_check(min_version=min_version, max_version=max_version)
651655

652656
# HTTP Posting of grid voltage
653657
async def grid_voltage(self, voltage: int | None = None) -> None:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
PROJECT_DIR = Path(__file__).parent.resolve()
88
README_FILE = PROJECT_DIR / "README.md"
9-
VERSION = "0.1.85"
9+
VERSION = "0.1.86"
1010

1111
setup(
1212
name="python_openevse_http",

0 commit comments

Comments
 (0)