@kosdev-code/kos-ddk-models 0.1.0-dev.38 → 0.1.0-dev.40

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.
package/index.mjs CHANGED
@@ -901,7 +901,7 @@ let CarbWaterModelImpl = class {
901
901
  const carbHolder = this.assemblyModel.getHoldersByGroup("carb")[0];
902
902
  const pump = carbHolder.pumps.data[0];
903
903
  const model = getKosCompanionModel(pump, FcmPump.type);
904
- return model;
904
+ return model ?? carbHolder;
905
905
  }
906
906
  // -------------------LIFECYCLE----------------------------
907
907
  async init() {
@@ -2358,7 +2358,7 @@ let PlainWaterModelImpl = class {
2358
2358
  const waterHolder = this.getHolder();
2359
2359
  const pump = waterHolder?.pumps?.data?.[0];
2360
2360
  const model = getKosCompanionModel(pump, FcmPump.type);
2361
- return model;
2361
+ return model ?? waterHolder;
2362
2362
  }
2363
2363
  // -------------------LIFECYCLE----------------------------
2364
2364
  async init() {