custom-cards / custom-card-helpers

Custom Card Helper Functions/Types for Developers
https://custom-cards.github.io/custom-card-helpers/
MIT License
48 stars 29 forks source link

Use actionConfig.haptic in handleAction #62

Closed bernikr closed 1 year ago

bernikr commented 2 years ago

There is inconsistent behavior between the handleAction and handleClick methods. Both take an actionConfig (which contains a haptic option) as an argument, but handleAction ignores the haptic option and triggers success haptics without any option of turning them off.

This PR changes this behavior to correctly use the actionConfig.haptic in the handleAction method.

Related: #61