Fix code depts

This commit is contained in:
Andre Basche 2023-04-15 23:02:37 +02:00
parent a1618bb18a
commit 46ff9be4a2
10 changed files with 34 additions and 27 deletions

View file

@ -124,8 +124,8 @@ class HonParameterProgram(HonParameterEnum):
def __init__(self, key, command):
super().__init__(key, {})
self._command = command
self._value = command._program
self._values = command._multi
self._value = command.program
self._values = command.programs
self._typology = "enum"
self._filter = ""
@ -136,7 +136,7 @@ class HonParameterProgram(HonParameterEnum):
@value.setter
def value(self, value):
if value in self.values:
self._command.set_program(value)
self._command.program = value
else:
raise ValueError(f"Allowed values {self._values}")