From d53396235ff3e2eed44fec491878933cac016abf Mon Sep 17 00:00:00 2001 From: xiaoshi <115949669+xiaoshi930@users.noreply.github.com> Date: Thu, 29 Jan 2026 18:17:32 +0800 Subject: [PATCH] Update xiaoshi-pad-climate-card.js --- xiaoshi-pad-climate-card.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/xiaoshi-pad-climate-card.js b/xiaoshi-pad-climate-card.js index fd96aee..968aa4b 100644 --- a/xiaoshi-pad-climate-card.js +++ b/xiaoshi-pad-climate-card.js @@ -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) {