Skip to content

Commit

Permalink
Merge pull request #28 from custom-cards/RomRider-patch-1
Browse files Browse the repository at this point in the history
Add support for fire-dom-event
  • Loading branch information
iantrich authored Feb 12, 2021
2 parents b5add47 + 281b04f commit 438f8e6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/handle-action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ export const handleActionConfig = (
const [domain, service] = actionConfig.service.split(".", 2);
hass.callService(domain, service, actionConfig.service_data);
forwardHaptic("success");
break;
}
case "fire-dom-event": {
fireEvent(node, "ll-custom", actionConfig);
}
}
};
Expand Down

0 comments on commit 438f8e6

Please sign in to comment.