2023-04-08 04:06:36 +02:00
|
|
|
from pyhon.parameter import HonParameterEnum
|
|
|
|
|
|
|
|
|
|
|
|
class Appliance:
|
|
|
|
def __init__(self):
|
|
|
|
filters = ["receipt", "standard, special"]
|
2023-04-09 20:55:36 +02:00
|
|
|
data = {"defaultValue": filters[0], "enumValues": filters}
|
2023-04-08 04:06:36 +02:00
|
|
|
self._program_filter = HonParameterEnum("program_filter", data)
|
|
|
|
|
|
|
|
def data(self, data):
|
|
|
|
return data
|
|
|
|
|
|
|
|
def settings(self, settings):
|
|
|
|
settings["program_filter"] = self._program_filter
|
|
|
|
settings["startProgram.program"].filter = self._program_filter.value
|
|
|
|
return settings
|