Skip to content

Commit

Permalink
v1.6.0-beta.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Clooos authored Dec 21, 2023
1 parent 658ea1e commit 402f6e2
Show file tree
Hide file tree
Showing 14 changed files with 1,195 additions and 593 deletions.
24 changes: 13 additions & 11 deletions dist/bubble-card.js

Large diffs are not rendered by default.

60 changes: 31 additions & 29 deletions dist/bubble-pop-up.js

Large diffs are not rendered by default.

6 changes: 2 additions & 4 deletions src/bubble-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,12 @@ class BubbleCard extends HTMLElement {
set hass(hass) {

this._hass = hass;

editor = checkEditor();
this.editor = editor;

initializeContent(this);

checkEditor(editor).then((value) => {
editor = value;
});

switch (this.config.card_type) {
// Initialize pop-up card
case 'pop-up':
Expand Down
6 changes: 2 additions & 4 deletions src/bubble-pop-up.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,14 @@ class BubblePopUp extends HTMLElement {
set hass(hass) {

this._hass = hass;

editor = checkEditor();
this.editor = editor;

checkResources(hass);

initializeContent(this);

checkEditor(editor).then((value) => {
editor = value;
});

// Initialize pop-up card
handlePopUp(this);
}
Expand Down
2 changes: 1 addition & 1 deletion src/cards/button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export function handleButton(context) {
context.switchButton = context.content.querySelector(".switch-button");
}

createIcon(context, hass, entityId, icon, iconContainer, editor);
createIcon(context, entityId, icon, iconContainer, editor);
nameContainer.innerHTML = `
<p class="name">${name}</p>
${!showState ? '' : `<p class="state">${formatedState}</p>`}
Expand Down
Loading

0 comments on commit 402f6e2

Please sign in to comment.