Jan-15-2017, 02:01 AM
I created a class:
class AIHome: def __init__(self): self.fetchUpdate(); def fetchUpdate(self): self.relayToggle() def relayToggle(self): self.write(self,1,1) def write(self, relay, state): ...do this and thatI havent used any methods until now that I need to send a relay value and state value. So how should I call that method properly.