Skip to content

Commit 8a79f91

Browse files
authored
_handleMoreInfo
_handleMoreInfo added also for compact view
1 parent 91f80f3 commit 8a79f91

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

b2500d-card.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ class B2500DCard extends LitElement {
497497
icon = `mdi:battery-${level}`;
498498
}
499499
return html`
500-
<div class="compact">
500+
<div class="compact" @click=${() => this._handleMoreInfo(this._getEntity("battery_percentage"))}>
501501
<div class="device">
502502
<div class="unit">
503503
<div class="battery-bar">
@@ -856,3 +856,4 @@ class B2500DCardEditor extends LitElement {
856856

857857

858858
customElements.define("b2500d-card-editor", B2500DCardEditor);
859+

0 commit comments

Comments
 (0)