From fccd611598ee3a73db5cba1d8b5b4648ccaa394b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20W?= Date: Fri, 12 Feb 2021 18:38:14 +0100 Subject: [PATCH] Handle fire-dom-event --- src/handle-click.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/handle-click.ts b/src/handle-click.ts index 552a4e4..5a94fd0 100644 --- a/src/handle-click.ts +++ b/src/handle-click.ts @@ -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; } } };