Skip to content

Commit

Permalink
Merge pull request #29 from custom-cards/RomRider-patch-2
Browse files Browse the repository at this point in the history
Handle fire-dom-event
  • Loading branch information
iantrich authored Feb 16, 2021
2 parents 9ca4909 + fccd611 commit 85dc503
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/handle-click.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,12 @@ export const handleClick = (
}
hass.callService(domain, service, serviceData);
if (actionConfig.haptic) forwardHaptic(actionConfig.haptic);
break;
}
case "fire-dom-event": {
fireEvent(node, "ll-custom", actionConfig);
if (actionConfig.haptic) forwardHaptic(actionConfig.haptic);
break;
}
}
};

0 comments on commit 85dc503

Please sign in to comment.