From 9a7d79f22fceb81fbe2498e4eacb12bbfe783e32 Mon Sep 17 00:00:00 2001 From: tagyoureit Date: Fri, 21 Jun 2024 22:21:03 -0700 Subject: [PATCH] remove duplicate spillway logic check --- controller/boards/SystemBoard.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller/boards/SystemBoard.ts b/controller/boards/SystemBoard.ts index 34a022e2..799cb285 100644 --- a/controller/boards/SystemBoard.ts +++ b/controller/boards/SystemBoard.ts @@ -4613,7 +4613,7 @@ export class ValveCommands extends BoardCommands { typeof state.features.get().find(elem => typeof elem.type !== 'undefined' && elem.type.name === 'spadrain' && elem.isOn === true) !== 'undefined' : false; // Check to see if there is a spillway circuit or feature on. If it is on then the return will be diverted no mater what. let spillway = sys.equipment.shared ? - typeof state.circuits.get().find(elem => typeof elem.type !== 'undefined' && elem.type.name === 'spillway' && elem.isOn === true) !== 'undefined' || + // typeof state.circuits.get().find(elem => typeof elem.type !== 'undefined' && elem.type.name === 'spillway' && elem.isOn === true) !== 'undefined' || typeof state.features.get().find(elem => typeof elem.type !== 'undefined' && elem.type.name === 'spillway' && elem.isOn === true) !== 'undefined' : false; let spa = sys.equipment.shared ? state.circuits.getItemById(1).isOn : false; let pool = sys.equipment.shared ? state.circuits.getItemById(6).isOn : false;