1
0
mirror of https://github.com/Andre0512/pyhOn.git synced 2024-11-24 08:12:20 +02:00

Update parameter.py to support missing parameter in some cases with HW5600

This commit is contained in:
Alexandre Leites 2023-03-13 03:59:42 +01:00 committed by GitHub
parent ec7355e341
commit f00ee03c0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)"