michbeck100 / pimatic-hap

Pimatic homekit bridge
GNU General Public License v2.0
30 stars 10 forks source link

Prevent infinite loops when switching #29

Closed michbeck100 closed 8 years ago

michbeck100 commented 8 years ago

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

michbeck100 commented 8 years ago

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