Skip to content

Commit

Permalink
fix(entity): allowed for background again (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
ulic75 authored Nov 17, 2022
1 parent d25ff4c commit 84335be
Showing 1 changed file with 15 additions and 18 deletions.
33 changes: 15 additions & 18 deletions src/power-flow-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -610,8 +610,8 @@ export class PowerFlowCard extends LitElement {
${hasSolarProduction
? html`<div
class="lines ${classMap({
battery: hasBattery,
high: !hasBattery && hasGas && hasWater,
high: hasBattery,
"water-gas": !hasBattery && hasGas && hasWater,
})}"
>
<svg
Expand Down Expand Up @@ -651,8 +651,8 @@ export class PowerFlowCard extends LitElement {
${hasReturnToGrid && hasSolarProduction
? html`<div
class="lines ${classMap({
battery: hasBattery,
high: !hasBattery && hasGas && hasWater,
high: hasBattery,
"water-gas": !hasBattery && hasGas && hasWater,
})}"
>
<svg
Expand Down Expand Up @@ -690,8 +690,8 @@ export class PowerFlowCard extends LitElement {
${hasBattery && hasSolarProduction
? html`<div
class="lines ${classMap({
battery: hasBattery,
high: !hasBattery && hasGas && hasWater,
high: hasBattery,
"water-gas": !hasBattery && hasGas && hasWater,
})}"
>
<svg
Expand Down Expand Up @@ -727,8 +727,8 @@ export class PowerFlowCard extends LitElement {
${hasGrid
? html`<div
class="lines ${classMap({
battery: hasBattery,
high: !hasBattery && hasGas && hasWater,
high: hasBattery,
"water-gas": !hasBattery && hasGas && hasWater,
})}"
>
<svg
Expand Down Expand Up @@ -768,8 +768,8 @@ export class PowerFlowCard extends LitElement {
${hasBattery
? html`<div
class="lines ${classMap({
battery: hasBattery,
high: !hasBattery && hasGas && hasWater,
high: hasBattery,
"water-gas": !hasBattery && hasGas && hasWater,
})}"
>
<svg
Expand Down Expand Up @@ -805,8 +805,8 @@ export class PowerFlowCard extends LitElement {
${hasGrid && hasBattery
? html`<div
class="lines ${classMap({
battery: hasBattery,
high: !hasBattery && hasGas && hasWater,
high: hasBattery,
"water-gas": !hasBattery && hasGas && hasWater,
})}"
>
<svg
Expand Down Expand Up @@ -894,12 +894,11 @@ export class PowerFlowCard extends LitElement {
padding: 0 16px 16px;
box-sizing: border-box;
}
.lines.battery {
bottom: 100px;
height: 156px;
.lines.water-gas {
bottom: 110px;
}
.lines.high {
bottom: 107px;
bottom: 100px;
height: 156px;
}
.lines svg {
Expand Down Expand Up @@ -958,8 +957,6 @@ export class PowerFlowCard extends LitElement {
position: relative;
text-decoration: none;
color: var(--primary-text-color);
background-color: var(--card-background-color);
z-index: 1;
}
ha-svg-icon {
padding-bottom: 2px;
Expand Down

0 comments on commit 84335be

Please sign in to comment.