From 965e649f8cd024dd054ed33dd2ba0f98b508c8ae Mon Sep 17 00:00:00 2001 From: Maxim Devaev Date: Sat, 11 Jan 2025 22:20:56 +0200 Subject: switch update notification --- kvmd/apps/kvmd/switch/state.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'kvmd/apps') diff --git a/kvmd/apps/kvmd/switch/state.py b/kvmd/apps/kvmd/switch/state.py index 626cdfe1..e49d0062 100644 --- a/kvmd/apps/kvmd/switch/state.py +++ b/kvmd/apps/kvmd/switch/state.py @@ -49,6 +49,8 @@ class _UnitInfo: # ===== class StateCache: # pylint: disable=too-many-instance-attributes + __FW_VERSION = 5 + __FULL = 0xFFFF __SUMMARY = 0x01 __EDIDS = 0x02 @@ -139,6 +141,7 @@ class StateCache: # pylint: disable=too-many-instance-attributes state: dict = {} if x_model: state["model"] = { + "firmware": {"version": self.__FW_VERSION}, "units": [], "ports": [], "limits": { -- cgit v1.2.3