mirror of
https://github.com/tomaae/homeassistant-mikrotik_router.git
synced 2025-06-28 11:40:08 +02:00
add title to update entities
This commit is contained in:
parent
d420a8ad06
commit
a588cec520
1 changed files with 10 additions and 0 deletions
|
@ -106,6 +106,11 @@ class MikrotikRouterOSUpdate(MikrotikEntity, UpdateEntity):
|
||||||
"""URL to the full release notes of the latest version available."""
|
"""URL to the full release notes of the latest version available."""
|
||||||
return "https://mikrotik.com/download/changelogs"
|
return "https://mikrotik.com/download/changelogs"
|
||||||
|
|
||||||
|
@property
|
||||||
|
def title(self) -> str:
|
||||||
|
"""Title of the update entity."""
|
||||||
|
return "Mikrotik RouterOS"
|
||||||
|
|
||||||
|
|
||||||
# ---------------------------
|
# ---------------------------
|
||||||
# MikrotikRouterBoardFWUpdate
|
# MikrotikRouterBoardFWUpdate
|
||||||
|
@ -150,3 +155,8 @@ class MikrotikRouterBoardFWUpdate(MikrotikEntity, UpdateEntity):
|
||||||
"""Install an update."""
|
"""Install an update."""
|
||||||
self._ctrl.execute("/system/routerboard", "upgrade", None, None)
|
self._ctrl.execute("/system/routerboard", "upgrade", None, None)
|
||||||
self._ctrl.execute("/system", "reboot", None, None)
|
self._ctrl.execute("/system", "reboot", None, None)
|
||||||
|
|
||||||
|
@property
|
||||||
|
def title(self) -> str:
|
||||||
|
"""Title of the update entity."""
|
||||||
|
return "Mikrotik RouterBoard"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue