From 3eebccd5664a8571e5efb5a6f5a4000f774c9e04 Mon Sep 17 00:00:00 2001 From: Felix Roos Date: Sun, 1 May 2022 22:22:07 +0200 Subject: [PATCH] add showWhole --- packages/core/hap.mjs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/core/hap.mjs b/packages/core/hap.mjs index 169631c0..19576852 100644 --- a/packages/core/hap.mjs +++ b/packages/core/hap.mjs @@ -82,6 +82,10 @@ export class Hap { '(' + (this.whole == undefined ? '~' : this.whole.show()) + ', ' + this.part.show() + ', ' + this.value + ')' ); } + + showWhole() { + return `${this.whole == undefined ? '~' : this.whole.show()}: ${this.value}`; + } combineContext(b) { const a = this;