fixed bug close and open valve methods

This commit is contained in:
Senad Uka
2016-01-24 09:41:38 +01:00
parent 4f01af32c8
commit dd7f401aa9

View File

@@ -24,11 +24,11 @@ class Changer(object):
change()
return self.local_state
def open_valve():
def open_valve(self):
GPIO.output(config.GPIO_PIN_VALVE, GPIO.HIGH)
self.local_state['out_valve'] = 'open'
def close_valve():
def close_valve(self):
GPIO.output(config.GPIO_PIN_VALVE, GPIO.LOW)
self.local_state['out_valve'] = 'closed'