Skip to content

Commit

Permalink
Merge pull request #55 from molikk/Outside-temperature-display-fix
Browse files Browse the repository at this point in the history
Outside temperature display fix
  • Loading branch information
molikk authored Aug 8, 2024
2 parents 1896c79 + 636739a commit b06bfab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cards/compact/solar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export class Solar {
class="${config.entities?.environment_temp ? 'st3 left-align' : 'st12'}"
fill="${data.solarColour}"
display="${data.stateEnvironmentTemp.isValid() ? '' : 'none'}">
${data.stateEnvironmentTemp.toNum(1)}°
${data.stateEnvironmentTemp.toNum(1)}${data.stateEnvironmentTemp.getUOM()}
</text>
</a>`;

Expand Down Expand Up @@ -207,8 +207,8 @@ export class Solar {
private static getProduction(
fieldId: string,
entity: CustomEntity,
startPosition: { x: number; gap: number }
, config: PowerFlowCardConfig) {
startPosition: { x: number; gap: number },
config: PowerFlowCardConfig) {
const startX = startPosition.x;
const power = entity?.toPowerString(true, this.decimalPlacesEnergy) || '0';
const name = config.solar[fieldId] ? config.solar[fieldId] : localize('common.' + fieldId);
Expand Down

0 comments on commit b06bfab

Please sign in to comment.