Skip to content

Commit

Permalink
Battery temperature display fix
Browse files Browse the repository at this point in the history
  • Loading branch information
molikk committed Aug 8, 2024
1 parent b06bfab commit 3ad1cf9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/cards/compact/battery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,11 @@ export class Battery {
static generateTemp(data: DataDto) {
return svg`
<a href="#" @click=${(e) => Utils.handlePopup(e, data.stateBatteryTemp.entity_id)}>
<text id="battery_temp_182" x="205"
y="332"
class="st3 left-align"
<text id="battery_temp_182" x="227" y="334"
class="st3 right-align"
fill="${data.batteryColour}"
display="${data.stateBatteryTemp.isValid() ? '' : 'none'}">
${data.stateBatteryTemp.toNum(1)}°
${data.stateBatteryTemp.toNum(1)}${data.stateBatteryTemp.getUOM()}
</text>
</a>
Expand Down

0 comments on commit 3ad1cf9

Please sign in to comment.