Skip to content

Commit

Permalink
1.12.2 (#529)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaskivskyi authored Aug 28, 2024
1 parent 20b01b7 commit 34ef067
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion asusrouter/modules/firmware.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,8 @@ def from_string(self, fw_string: Optional[str] = None) -> None:
if major and "." not in major and len(major) == 4
else major
)
beta = major[0] == "9"
# Only if major version exists and has 0 member
beta = major[0] == "9" if major and len(major) > 0 else False
# Minor version
minor = safe_int(re_match.group("minor"))
# Build version
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "asusrouter"
version = "1.12.1"
version = "1.12.2"
license = {text = "Apache-2.0"}
requires-python = ">=3.11.0"
readme = "README.md"
Expand Down
2 changes: 2 additions & 0 deletions tests/modules/test_firmware.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,8 @@ def test_update_source(self, revision, expected_source):
False,
False,
),
# Additional cases
(".386.7_120", None, 386, 7, 120, False, False),
# Invalid input
("", None, None, None, None, False, False),
("invalid", None, None, None, None, False, False),
Expand Down

0 comments on commit 34ef067

Please sign in to comment.