|
I'm triying to make a simple rule IF A then B Gives me an error |
Answered by
amogorkon
Apr 26, 2022
Replies: 1 comment 1 reply
|
Hi, did you figure it out? Rules are there to map sets of one domain to a single set of another, so it expects the left side to be an iterable like a tuple. Try
That should do the trick. |
1 reply
Answer selected by
amogorkon
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, did you figure it out?
Rules are there to map sets of one domain to a single set of another, so it expects the left side to be an iterable like a tuple.
Try
R1 = Rule({(temp.hot, ): motor.fast})That should do the trick.