mirror of
https://github.com/xiaoshi930/xiaoshi-pad-card.git
synced 2026-02-11 06:03:49 +00:00
Update xiaoshi-pad-climate-card.js
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user