Update xiaoshi-pad-climate-card.js

This commit is contained in:
xiaoshi
2026-01-29 18:17:32 +08:00
committed by GitHub
parent 3bf2f2476d
commit d53396235f

View File

@@ -2891,7 +2891,13 @@ class XiaoshiPadClimateCard extends LitElement {
}
_handleClick(){
navigator.vibrate(50);
const hapticEvent = new Event('haptic', {
bubbles: true,
cancelable: false,
composed: true
});
hapticEvent.detail = 'light';
this.dispatchEvent(hapticEvent);
}
_formatSeconds(totalSeconds) {