When a Toggle Module is set on, the “On” function is run. However, when a toggled-on Toggle Module is set on again, the “On” function is run again. While this behavior isn’t exactly wrong, it doesn’t match other IO behavior, such as the Counter Module. When the Counter Module reaches its max, it runs the “OnReachedMax” function. When the Counter Module is added to at max value, it doesn’t run “OnReachedMax” again.
This behavior also happens with the “Off” function as well.
Steps to Reproduce
- Create a Toggle Module.
- Connect the Toggle Module to a light (On → Toggle Light)
- Set the toggle module on multiple times.
- The light toggles despite the Toggle Module already being on.
What I expected to happen
The Toggle Module won’t run the “On” function when the Toggle Module is already on.
What happened
The Toggle Module will continue to run the “On” function despite being on.