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

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