Skip to content

Commit

Permalink
0.32.0 (#831)
Browse files Browse the repository at this point in the history
* Add raw data check before processing it as dict (#829)

* Add `reboot_aimesh` button (#830)

* Bump asusrouter to `1.10.0`

* Bump version to `0.32.0`
  • Loading branch information
Vaskivskyi authored May 21, 2024
1 parent d0647a4 commit b6d803b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
2 changes: 2 additions & 0 deletions custom_components/asusrouter/bridge.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,8 @@ async def _get_data(

try:
raw = await self.api.async_get_data(datatype, force=force)
if raw is None:
raw = {}
if process is not None:
return process(raw)
return self._process_data(raw)
Expand Down
10 changes: 9 additions & 1 deletion custom_components/asusrouter/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -987,11 +987,19 @@
),
]
STATIC_BUTTONS_OPTIONAL: list[ARButtonDescription] = [
ARButtonDescription(
key="reboot_aimesh",
name="Reboot AiMesh",
icon=ICON_RESTART,
state=AsusSystem.AIMESH_REBOOT,
device_class=ButtonDeviceClass.RESTART,
entity_registry_enabled_default=True,
),
ARButtonDescription(
key="rebuild_aimesh",
name="Rebuild AiMesh",
icon=ICON_DEVICES,
state=AsusSystem.REBUILD_AIMESH,
state=AsusSystem.AIMESH_REBUILD,
device_class=ButtonDeviceClass.RESTART,
entity_registry_enabled_default=True,
),
Expand Down
4 changes: 2 additions & 2 deletions custom_components/asusrouter/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
"iot_class": "local_polling",
"issue_tracker": "https://github.com/Vaskivskyi/ha-asusrouter/issues",
"loggers": ["asusrouter"],
"requirements": ["asusrouter==1.9.0"],
"version": "0.31.0"
"requirements": ["asusrouter==1.10.0"],
"version": "0.32.0"
}

0 comments on commit b6d803b

Please sign in to comment.