Bewaesserungsanlage/FileIO/__init__.py

13 lines
401 B
Python
Raw Normal View History

2022-08-15 01:10:34 +02:00
from Zone import Zone
2022-08-15 23:58:07 +02:00
class FileIO:
def __init__(self, systemSettings):
self.systemSettings = systemSettings
2022-08-15 01:10:34 +02:00
2022-08-15 23:58:07 +02:00
def loadZones(self):
zones = []
for i in range(12):
2022-08-16 03:13:10 +02:00
zones.append(Zone(number=i+1, name="Zone " + str(i+1), actualHumidity=50, desiredHumidity=30, autoMode=True, state=False, setState=0, endTimeSetState=0, planedDuration=0))
2022-08-15 23:58:07 +02:00
return zones