Browse Source

Fixed a few toString methods

update-deps
Alex Mikhalev 7 years ago
parent
commit
5d25ce7381
  1. 4
      common/sprinklers/Program.ts
  2. 8
      common/sprinklers/SprinklersDevice.ts

4
common/sprinklers/Program.ts

@ -41,7 +41,7 @@ export class Program { @@ -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}}`;
}
}

8
common/sprinklers/SprinklersDevice.ts

@ -30,9 +30,9 @@ export abstract class SprinklersDevice { @@ -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} }`;
}
}

Loading…
Cancel
Save