davidnewhall / indigo-8channel-relay

Indigo Plugin for 8 Channel Network Relay Board
MIT License
3 stars 4 forks source link

Fix updating bug. #1

Closed davidnewhall closed 6 years ago

davidnewhall commented 6 years ago

This contribution fixes a problem with the update routine. It seems to always update devices to off even when they're on. It also removes updates for duplicate host/post combos by using set(). The bug is fixed by setting all text to upper case and matching values "case insensitive." The script was originally looking for Relayon but the text was relayon.