michbeck100/pimatic-hap

Prevent infinite loops when switching

michbeck100 opened this issue · 1 comments

Some switch implementations aren't safe when switching from on to on. This can cause an infinite loop of events and event handlers.

Comparing new value with current value to prevent infinite switching. Should be fixed now.