mirror of
https://github.com/xiaoshi930/xiaoshi-pad-card.git
synced 2026-02-27 05:56:34 +00:00
Update xiaoshi-pad-climate-card.js
This commit is contained in:
@@ -2890,8 +2890,14 @@ class XiaoshiPadClimateCard extends LitElement {
|
|||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
|
||||||
_handleClick() {
|
_handleClick(){
|
||||||
navigator.vibrate(50);
|
const hapticEvent = new Event('haptic', {
|
||||||
|
bubbles: true,
|
||||||
|
cancelable: false,
|
||||||
|
composed: true
|
||||||
|
});
|
||||||
|
hapticEvent.detail = 'light';
|
||||||
|
this.dispatchEvent(hapticEvent);
|
||||||
}
|
}
|
||||||
|
|
||||||
_formatSeconds(totalSeconds) {
|
_formatSeconds(totalSeconds) {
|
||||||
|
|||||||
Reference in New Issue
Block a user