add showWhole

This commit is contained in:
Felix Roos 2022-05-01 22:22:07 +02:00
parent f469e48970
commit 3eebccd566

View File

@ -83,6 +83,10 @@ export class Hap {
); );
} }
showWhole() {
return `${this.whole == undefined ? '~' : this.whole.show()}: ${this.value}`;
}
combineContext(b) { combineContext(b) {
const a = this; const a = this;
return { ...a.context, ...b.context, locations: (a.context.locations || []).concat(b.context.locations || []) }; return { ...a.context, ...b.context, locations: (a.context.locations || []).concat(b.context.locations || []) };