hollie/misterhouse — pull request #162 by krkeegan (2013-04-14 16:24:58+00:00)
Title: Insteon: Set Device State on a Received AllLink Broadcast Message

Fixes issue #153

The set routine is now called when a broadcase message is received. The flag _pending_cleanup is also set.

When a Direct Cleanup Message is received, if the state of the device matches the pending state and the _pending_cleanup flag is set, we assume that this command was already processed.

This code is all adjacent to each other, so using a flag should not be confusing.

Much of the code was already there, but was commented out by Gregg in his first commit of the new insteon code. This initial commit included a huge number of changes and no notes were added as to why this was disabled in the redux.