Skip to content

Commit

Permalink
Add logic to address an omission from previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
w531t4 committed Nov 9, 2024
1 parent 71a5442 commit 499435a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/mushroom-strategy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,11 @@ class MushroomStrategy extends HTMLTemplateElement {
continue;
}

// Don't include the diagnostic-entity if hidden in the strategy options
if (entity.entity_category === "diagnostic" && Helper.strategyOptions.domains["_"].hide_diagnostic_entities) {
continue;
}

miscellaneousCards.push(new cardModule.MiscellaneousCard(entity, cardOptions).getCard());
}

Expand Down

0 comments on commit 499435a

Please sign in to comment.