cut and lower program keys

This commit is contained in:
Andre Basche 2023-03-11 01:10:27 +01:00
parent fe4f6e766e
commit fc8c92d538
3 changed files with 8 additions and 7 deletions

View file

@ -2,12 +2,12 @@ from pyhon.parameter import HonParameterFixed, HonParameterEnum, HonParameterRan
class HonCommand:
def __init__(self, name, attributes, connector, device, multi=None, category=""):
def __init__(self, name, attributes, connector, device, multi=None, program=""):
self._connector = connector
self._device = device
self._name = name
self._multi = multi or {}
self._category = category
self._program = program
self._description = attributes.get("description", "")
self._parameters = self._create_parameters(attributes.get("parameters", {}))
self._ancillary_parameters = self._create_parameters(attributes.get("ancillaryParameters", {}))