forwardHaptic on node rather than window. (#27251)

forwardHaptic on node rather than window. Allows for capturing for custom cards.
This commit is contained in:
dcapslock
2025-09-30 14:49:32 +10:00
committed by GitHub
parent 60e07075bc
commit 1e1514e7da
21 changed files with 32 additions and 32 deletions

View File

@@ -112,7 +112,7 @@ export class HaEntityToggle extends LitElement {
if (!this.hass || !this.stateObj) {
return;
}
forwardHaptic("light");
forwardHaptic(this, "light");
const stateDomain = computeStateDomain(this.stateObj);
let serviceDomain;
let service;