michbeck100 / pimatic-hap

Pimatic homekit bridge

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Prevent infinite loops when switching

michbeck100 opened this issue · 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.