Fixed a few toString methods
This commit is contained in:
parent
00bd588794
commit
5d25ce7381
@ -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}}`;
|
||||
}
|
||||
}
|
||||
|
@ -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…
x
Reference in New Issue
Block a user