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

Add handleActionConfig to allow people to run their own ActionConfig #20

Closed indykoning closed 3 years ago

indykoning commented 4 years ago

I seperated out the actual executing of the ActionConfig and the grabbing of the ActionConfig to allow for people to provide their own ActionConfig. I needed to add my own press_action and release_action (https://github.com/custom-cards/button-card/pull/360), if this is merged this can easily be added by providing the actionconfig they want to run to handleActionConfig instead of the action that was performed to handleAction.

iantrich commented 3 years ago

Sorry, this one got lost in the shuffle of life. I didn't want to deal with the conflicts so just pushed your change myself and is in release 1.6.8. Thanks.