Skip to content

Commit

Permalink
1.1.1 (#389)
Browse files Browse the repository at this point in the history
* Fix typo in logging (#387)

* Remove WG and VPNC data maps below 388 (#388)

* Bump version to `1.1.1`
  • Loading branch information
Vaskivskyi authored Nov 20, 2023
1 parent ecc8a9c commit c688fef
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
7 changes: 6 additions & 1 deletion asusrouter/asusrouter.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,13 @@ async def async_get_identity(self, force: bool = False) -> AsusDevice:
)
# Before 388
if firmware < fw_388:
# Remove WireGuard rule
# Remove VPNC rules
remove_data_rule(AsusData.VPNC)
remove_data_rule(AsusData.VPNC_CLIENTLIST)
# Remove WireGuard rules
remove_data_rule(AsusData.WIREGUARD)
remove_data_rule(AsusData.WIREGUARD_CLIENT)
remove_data_rule(AsusData.WIREGUARD_SERVER)

# Return new identity
return self._identity
Expand Down
3 changes: 2 additions & 1 deletion asusrouter/tools/readers.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ def read_json_content(content: Optional[str]) -> dict[str, Any]:
return json.loads(content.encode().decode("utf-8-sig"))
except json.JSONDecodeError as ex:
_LOGGER.error(
"Unable to decode json content with exception `%s`. Please, copy this end fill in a bug report: %s",
"Unable to decode json content with exception `%s`.\
Please, copy this and fill in a bug report: %s",
ex,
content,
)
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.1.0"
version = "1.1.1"
license = {text = "Apache-2.0"}
requires-python = ">=3.11.0"
readme = "README.md"
Expand Down

0 comments on commit c688fef

Please sign in to comment.