diff --git a/common/sprinklers/Program.ts b/common/sprinklers/Program.ts index fb937e9..c822562 100644 --- a/common/sprinklers/Program.ts +++ b/common/sprinklers/Program.ts @@ -41,7 +41,7 @@ export class Program { } toString(): string { - return `Program{name="${this.name}", enabled=${this.enabled}, schedule=${this.schedule}, - sequence=${this.sequence}, running=${this.running}}`; + return `Program{name="${this.name}", enabled=${this.enabled}, schedule=${this.schedule}, ` + + `sequence=${this.sequence}, running=${this.running}}`; } } diff --git a/common/sprinklers/SprinklersDevice.ts b/common/sprinklers/SprinklersDevice.ts index 3ef1f4b..e159c9c 100644 --- a/common/sprinklers/SprinklersDevice.ts +++ b/common/sprinklers/SprinklersDevice.ts @@ -30,9 +30,9 @@ export abstract class SprinklersDevice { abstract unpauseSectionRunner(): Promise<{}>; toString(): string { - return `SprinklersDevice{id="${this.id}", connected=${this.connected}, - sections=${this.sections}, - programs=${this.programs}, - sectionRunner=${this.sectionRunner} }`; + return `SprinklersDevice{id="${this.id}", connected=${this.connected}, ` + + `sections=[${this.sections}], ` + + `programs=[${this.programs}], ` + + `sectionRunner=${this.sectionRunner} }`; } }