- fixed constructor params

git-svn-id: http://moon:8086/svn/projects/HendiControl@366 fda53097-d464-4ada-af97-ba876c37ca34
This commit is contained in:
2020-04-19 17:38:00 +00:00
parent 78bbb9942e
commit d746506941
+2
View File
@@ -19,6 +19,8 @@ class Plant(APlant):
if enable == True:
self.heater.remoteEnable(enable)
self.heater.setSwitch(enable)
if not self.heater.isRemoteEnable():
raise Exception ("Heater: Cannot enable remote mode!")
else:
self.heater.setSwitch(enable)
self.heater.remoteEnable(enable)