From 36732636d004da1da61d6e7aea9f759fce1445f8 Mon Sep 17 00:00:00 2001 From: Georgi Gardev Date: Tue, 5 Nov 2024 22:11:41 +0200 Subject: [PATCH] Update deps --- package-lock.json | 2 +- package.json | 2 +- src/action-handler-directive.ts | 9 ++++----- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/package-lock.json b/package-lock.json index a302f91..44a7994 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,7 +11,7 @@ "dependencies": { "custom-card-helpers": "^1.9.0", "home-assistant-js-websocket": "^8.0.0", - "lit": "^2.4.0" + "lit": "^2.8.0" }, "devDependencies": { "@el3um4s/rollup-plugin-terser": "^1.0.2", diff --git a/package.json b/package.json index 78bb164..d811e10 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ "dependencies": { "custom-card-helpers": "^1.9.0", "home-assistant-js-websocket": "^8.0.0", - "lit": "^2.4.0" + "lit": "^2.8.0" }, "devDependencies": { "@el3um4s/rollup-plugin-terser": "^1.0.2", diff --git a/src/action-handler-directive.ts b/src/action-handler-directive.ts index 514755d..671b1db 100644 --- a/src/action-handler-directive.ts +++ b/src/action-handler-directive.ts @@ -168,16 +168,15 @@ class ActionHandler extends HTMLElement implements ActionHandler { } } -// TODO You need to replace all instances of "action-handler-boilerplate" with "action-handler-" -customElements.define('action-handler-boilerplate', ActionHandler); +customElements.define('action-handler-time-picker-card', ActionHandler); const getActionHandler = (): ActionHandler => { const body = document.body; - if (body.querySelector('action-handler-boilerplate')) { - return body.querySelector('action-handler-boilerplate') as ActionHandler; + if (body.querySelector('action-handler-time-picker-card')) { + return body.querySelector('action-handler-time-picker-card') as ActionHandler; } - const actionhandler = document.createElement('action-handler-boilerplate'); + const actionhandler = document.createElement('action-handler-time-picker-card'); body.appendChild(actionhandler); return actionhandler as ActionHandler;