Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
flyrmyr committed Nov 16, 2022
1 parent 879d538 commit 6c9864b
Show file tree
Hide file tree
Showing 7 changed files with 6,053 additions and 776 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ test/screenshots/**/failed

# build
_site/
/dist/
/out-tsc/
/.rollup.cache/
.tsbuildinfo
Expand Down
230 changes: 230 additions & 0 deletions dist/system-flow-card.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@
"start": "rollup -wc"
},
"dependencies": {
"@mdi/js": "^6.6.96",
"custom-card-helpers": "^1.9.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-lit-a11y": "^2.2.3",
"home-assistant-js-websocket": "^7.0.3",
"lit": "^2.2.2",
"tslib": "^2.4.0"
Expand Down
19 changes: 5 additions & 14 deletions src/system-flow-card-config.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,9 @@
import { LovelaceCardConfig } from "custom-card-helpers";
import { ComboEntity } from "./type.js";
import { SystemElementDef, ElementDef } from "./type.js";

export interface SystemFlowCardConfig extends LovelaceCardConfig {
entities: {
battery?: string | ComboEntity;
battery_charge?: string;
grid: string | ComboEntity;
solar?: string;
};
dashboard_link?: string;
inverted_entities: string | string[];
kw_decimals: number;
min_flow_rate: number;
max_flow_rate: number;
w_decimals: number;
watt_threshold: number;
elements: Array<ElementDef>;
system?: SystemElementDef;
speed?: number;
fadeIdylElements?: boolean;
}
Loading

0 comments on commit 6c9864b

Please sign in to comment.