From 790fe7a54899da909906201ae4abdff0cb8ae030 Mon Sep 17 00:00:00 2001 From: Petar Petrov Date: Wed, 25 May 2022 17:02:57 +0300 Subject: [PATCH] addressable spans in labels --- src/ha-sankey-chart.ts | 5 ++--- src/types.ts | 1 - 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/ha-sankey-chart.ts b/src/ha-sankey-chart.ts index 7163364..2f13341 100644 --- a/src/ha-sankey-chart.ts +++ b/src/ha-sankey-chart.ts @@ -178,8 +178,8 @@ export class SankeyChart extends LitElement { ${show_icons && html``}
- ${formattedState}${box.unit_of_measurement} - ${show_names && html` ${name}`} + ${formattedState}${box.unit_of_measurement} + ${show_names && html` ${name}`}
`; @@ -276,7 +276,6 @@ export class SankeyChart extends LitElement { ...entityConf, color: undefined, ...remainingConf, - isRemaining: true, accountedState: 0, }); } diff --git a/src/types.ts b/src/types.ts index 9f8d4bb..f23e95c 100644 --- a/src/types.ts +++ b/src/types.ts @@ -22,7 +22,6 @@ export type EntityConfig = { export type EntityConfigInternal = EntityConfig & { // children: string[]; - isRemaining?: boolean; accountedState?: number; }