Add oven and program filter

This commit is contained in:
Andre Basche 2023-04-08 04:06:36 +02:00
parent 6d40e73881
commit 36079c3c77
7 changed files with 59 additions and 28 deletions

16
pyhon/appliances/ov.py Normal file
View file

@ -0,0 +1,16 @@
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