From a588cec5202c9c924f23175a47417c56b64ca5f7 Mon Sep 17 00:00:00 2001 From: Sergio Mayoral Martinez Date: Wed, 17 Aug 2022 12:36:59 +0200 Subject: [PATCH] add title to update entities --- custom_components/mikrotik_router/update.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/custom_components/mikrotik_router/update.py b/custom_components/mikrotik_router/update.py index 6738642..0f66d3a 100644 --- a/custom_components/mikrotik_router/update.py +++ b/custom_components/mikrotik_router/update.py @@ -106,6 +106,11 @@ class MikrotikRouterOSUpdate(MikrotikEntity, UpdateEntity): """URL to the full release notes of the latest version available.""" return "https://mikrotik.com/download/changelogs" + @property + def title(self) -> str: + """Title of the update entity.""" + return "Mikrotik RouterOS" + # --------------------------- # MikrotikRouterBoardFWUpdate @@ -150,3 +155,8 @@ class MikrotikRouterBoardFWUpdate(MikrotikEntity, UpdateEntity): """Install an update.""" self._ctrl.execute("/system/routerboard", "upgrade", None, None) self._ctrl.execute("/system", "reboot", None, None) + + @property + def title(self) -> str: + """Title of the update entity.""" + return "Mikrotik RouterBoard"