mirror of
https://github.com/GeorgeSG/lovelace-time-picker-card.git
synced 2025-12-28 21:00:29 +00:00
Update deps
This commit is contained in:
2
package-lock.json
generated
2
package-lock.json
generated
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -168,16 +168,15 @@ class ActionHandler extends HTMLElement implements ActionHandler {
|
||||
}
|
||||
}
|
||||
|
||||
// TODO You need to replace all instances of "action-handler-boilerplate" with "action-handler-<your card name>"
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user