From 669fbb7e779c630b6fc3367a3ebdc9ef9855b116 Mon Sep 17 00:00:00 2001 From: Bram Kragten Date: Tue, 29 Oct 2019 12:37:25 +0100 Subject: [PATCH] Only do haptic on entity interactions --- src/panels/lovelace/common/handle-click.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/panels/lovelace/common/handle-click.ts b/src/panels/lovelace/common/handle-click.ts index 27b6d28c14..351ea4b9ca 100644 --- a/src/panels/lovelace/common/handle-click.ts +++ b/src/panels/lovelace/common/handle-click.ts @@ -72,6 +72,7 @@ export const handleClick = ( case "toggle": if (config.entity) { toggleEntity(hass, config.entity!); + forwardHaptic("light"); } break; case "call-service": { @@ -81,7 +82,7 @@ export const handleClick = ( } const [domain, service] = actionConfig.service.split(".", 2); hass.callService(domain, service, actionConfig.service_data); + forwardHaptic("light"); } } - forwardHaptic("light"); };