Skip to content

Commit 43f9ee4

Browse files
committed
fix(#171): connection calculation fix
1 parent a5b6402 commit 43f9ee4

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/chart.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@ export class Chart extends LitElement {
145145
if (c.calculating && c !== connection) {
146146
throw new Error('Circular reference detected in/near ' + JSON.stringify(ent));
147147
}
148-
c.calculating = true;
149148
this.connectionsByChild.get(c.child)?.forEach(conn => {
150149
if (conn.parent !== parent) {
151150
this._calcConnection(conn, accountedIn, accountedOut);
@@ -160,7 +159,6 @@ export class Chart extends LitElement {
160159
if (c.calculating && c !== connection) {
161160
throw new Error('Circular reference detected in/near ' + JSON.stringify(ent));
162161
}
163-
c.calculating = true;
164162
this.connectionsByParent.get(c.parent)?.forEach(conn => {
165163
if (conn.child !== child) {
166164
this._calcConnection(conn, accountedIn, accountedOut);
@@ -491,7 +489,6 @@ export class Chart extends LitElement {
491489
let entity = this.states[getEntityId(entityConf)];
492490
if (!entity) {
493491
if (entityConf.type === 'passthrough') {
494-
console.log('entityConf', entityConf);
495492
const connections = this.connectionsByParent.get(entityConf);
496493
if (!connections) {
497494
throw new Error('Invalid entity config ' + JSON.stringify(entityConf));

0 commit comments

Comments
 (0)