Skip to content

Commit 6c9864b

Browse files
author
Eric Meyer
committed
wip
1 parent 879d538 commit 6c9864b

File tree

7 files changed

+6053
-776
lines changed

7 files changed

+6053
-776
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ test/screenshots/**/failed
2020

2121
# build
2222
_site/
23-
/dist/
2423
/out-tsc/
2524
/.rollup.cache/
2625
.tsbuildinfo

dist/system-flow-card.js

Lines changed: 230 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@
2727
"start": "rollup -wc"
2828
},
2929
"dependencies": {
30-
"@mdi/js": "^6.6.96",
3130
"custom-card-helpers": "^1.9.0",
31+
"eslint-plugin-import": "^2.26.0",
32+
"eslint-plugin-lit-a11y": "^2.2.3",
3233
"home-assistant-js-websocket": "^7.0.3",
3334
"lit": "^2.2.2",
3435
"tslib": "^2.4.0"

src/system-flow-card-config.ts

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,9 @@
11
import { LovelaceCardConfig } from "custom-card-helpers";
2-
import { ComboEntity } from "./type.js";
2+
import { SystemElementDef, ElementDef } from "./type.js";
33

44
export interface SystemFlowCardConfig extends LovelaceCardConfig {
5-
entities: {
6-
battery?: string | ComboEntity;
7-
battery_charge?: string;
8-
grid: string | ComboEntity;
9-
solar?: string;
10-
};
11-
dashboard_link?: string;
12-
inverted_entities: string | string[];
13-
kw_decimals: number;
14-
min_flow_rate: number;
15-
max_flow_rate: number;
16-
w_decimals: number;
17-
watt_threshold: number;
5+
elements: Array<ElementDef>;
6+
system?: SystemElementDef;
7+
speed?: number;
8+
fadeIdylElements?: boolean;
189
}

0 commit comments

Comments
 (0)