mirror of
https://github.com/Andre0512/pyhOn.git
synced 2024-12-01 01:27:17 +01:00
17 lines
519 B
Python
17 lines
519 B
Python
|
from pyhon.parameter import HonParameterEnum
|
||
|
|
||
|
|
||
|
class Appliance:
|
||
|
def __init__(self):
|
||
|
filters = ["receipt", "standard, special"]
|
||
|
data = {'defaultValue': filters[0], 'enumValues': filters}
|
||
|
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
|