From 9a6a07fd46ba274f38b1c0cdb62c751403163b85 Mon Sep 17 00:00:00 2001 From: Andre Basche Date: Mon, 10 Jul 2023 23:58:24 +0200 Subject: [PATCH] Sync enum values of commands --- pyhon/appliance.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pyhon/appliance.py b/pyhon/appliance.py index f1ef65e..05b4b8d 100644 --- a/pyhon/appliance.py +++ b/pyhon/appliance.py @@ -11,6 +11,7 @@ from pyhon.attributes import HonAttribute from pyhon.command_loader import HonCommandLoader from pyhon.commands import HonCommand from pyhon.parameter.base import HonParameter +from pyhon.parameter.enum import HonParameterEnum from pyhon.parameter.range import HonParameterRange from pyhon.typedefs import Parameter @@ -283,4 +284,6 @@ class HonAppliance: parameter.max = int(base_value.value) parameter.min = int(base_value.value) parameter.step = 1 + elif isinstance(parameter, HonParameterEnum): + parameter.values = base_value.values parameter.value = base_value.value