mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 10:16:46 +00:00
Only do haptic on entity interactions
This commit is contained in:
parent
31a047ce9e
commit
c3896a4613
@ -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");
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user