forked from openhab/openhab-addons
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[RFXCOM] Make LWRF mood buttons work (openhab#2366)
Not all incoming operations are appropriate to all channels. Where an incoming operation cannot be mapped to an appropriate state for a channel an exception is raised. This aborts the loop through items connected to the thing's channels. In the case of a mood change sent from an LWRF device the failed conversion of mood to switch state will abort the loop before the mood channel is considered and thus the mood channel will never produce any updates. This is fixed here by wrapping the inner body of the loop in try/catch to discard any exceptions raised. This is something of an abuse of exception handling but the changes required to to filter incoming operations based on the channel being considered would be significant and widespread so exception dumping may be the better approach. At least for now. Closes openhab#1272 Closes openhab#2095 Signed-off-by: Mike Jagdis <[email protected]> (github: mjagdis)
- Loading branch information
Showing
1 changed file
with
117 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters