forked from openhab/openhab-addons
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[innogysmarthome] Improved handling pushbutton
Not all devices send same push button events. Some send 2 (StateChanged and ButtonPressed) others only 1 (StateChanged). When ButtonPressed is send the StateChanged doesn't contain lastPressedButtonIndex. So in that case we ignore the StateChanged event. The previous implementation assumed type was also always present, but that is not the case so it can't be used as an check. Closes openhab#6624 Signed-off-by: Hilbrand Bouwkamp <[email protected]>
- Loading branch information
Showing
1 changed file
with
15 additions
and
11 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