Add example to documentation.

This commit is contained in:
Dermot Duffy
2024-04-27 19:56:50 -07:00
parent 7917e5c537
commit b70e3157d6
4 changed files with 50 additions and 3 deletions
@@ -190,6 +190,7 @@ export class ConditionsManager {
const config = this._api.getConfigManager().getConfig();
const conditions: FrigateCardCondition[] = [];
config?.overrides?.forEach((override) => conditions.push(...override.conditions));
config?.automations?.forEach((automation) => conditions.push(...automation.conditions));
// Element conditions can be arbitrarily nested underneath conditionals and
// custom elements that this card may not known. Here we recursively parse