Skip to content

Commit

Permalink
Changing to check all preparation device methods for the graph
Browse files Browse the repository at this point in the history
  • Loading branch information
graphefruit committed Dec 15, 2024
1 parent b239808 commit 4db898c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -231,10 +231,13 @@ export class BrewBrewingGraphComponent implements OnInit {
await this.__connectTemperatureDevice(true);
isSomethingConnected = true;
}
const prepDeviceType =
this.brewComponent?.brewBrewingPreparationDeviceEl?.getPreparationDeviceType();
if (
this.brewComponent?.brewBrewingPreparationDeviceEl?.preparationDeviceConnected() &&
this.brewComponent?.brewBrewingPreparationDeviceEl?.getPreparationDeviceType() ===
PreparationDeviceType.METICULOUS
(prepDeviceType === PreparationDeviceType.METICULOUS ||
prepDeviceType === PreparationDeviceType.XENIA ||
prepDeviceType === PreparationDeviceType.SANREMO_YOU)
) {
isSomethingConnected = true;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,7 @@ export class BrewBrewingPreparationDeviceComponent implements OnInit {
}

public async instance() {
if (this.isEdit) {
await this.instancePreparationDevice(this.data);
}
await this.instancePreparationDevice(this.data);
}

public hasTargetWeightActive() {
Expand Down

0 comments on commit 4db898c

Please sign in to comment.