From f00ee03c0d7c4f107ac26728500789f122ef4fec Mon Sep 17 00:00:00 2001 From: Alexandre Leites <1256013+alexandre-leites@users.noreply.github.com> Date: Mon, 13 Mar 2023 03:59:42 +0100 Subject: [PATCH] Update parameter.py to support missing parameter in some cases with HW5600 --- pyhon/parameter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyhon/parameter.py b/pyhon/parameter.py index 361d05d..2970fd9 100644 --- a/pyhon/parameter.py +++ b/pyhon/parameter.py @@ -30,7 +30,7 @@ class HonParameter: class HonParameterFixed(HonParameter): def __init__(self, key, attributes): super().__init__(key, attributes) - self._value = attributes["fixedValue"] + self._value = attributes.get("fixedValue", None) def __repr__(self): return f"{self.__class__} (<{self.key}> fixed)"