hoffmation-base 3.0.0-alpha.2 → 3.0.0-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -26,6 +26,9 @@ class BaseCommand {
26
26
  reason = this.source.reasonTrace;
27
27
  }
28
28
  if (this.reason === '') {
29
+ if (reason === '') {
30
+ return `${this._commandType}`;
31
+ }
29
32
  return `${reason} -> ${this._commandType}`;
30
33
  }
31
34
  return `${reason} -> ${this._commandType}(${this.reason})`;
@@ -20,7 +20,7 @@ class DimmerSetLightCommand extends lampSetLightCommand_1.LampSetLightCommand {
20
20
  this._commandType = commandType_1.CommandType.DimmerSetLightCommand;
21
21
  }
22
22
  get logMessage() {
23
- return `Dimmer setLight to ${this.on} from ${this.source} for reason: ${this.reasonTrace}`;
23
+ return `Dimmer setLight to ${this.on} for reason: ${this.reasonTrace}`;
24
24
  }
25
25
  static byTimeBased(s, c) {
26
26
  switch (c.time) {