Hi,
I was wondering if I could get help with changing the state of this valve from an "open" to a "closed" state on perspective.
I am trying to make the valve toggle on a click. As such I attempted to create and if statement that handles this. While, admittedly, I know the if statement is probably constructed poorly - I am wondering why I am getting this error:
Note the code is as such:
def runAction(self, event):
if ({self.custom.example_2} == "closed", self.props.state == "open", self.props.state == "closed")