chore: Update ha-nunjucks to 1.6.2 (#2549)

- Replaces:
https://github.com/dermotduffy/advanced-camera-card/pull/2515
This commit is contained in:
Dermot Duffy
2026-06-30 17:45:13 -07:00
committed by dermotduffy
parent 015fb1876d
commit c3d3dd3934
15 changed files with 113 additions and 14 deletions
@@ -7,6 +7,7 @@ import {
createHASS,
createMockTemplateRenderer,
createStateEntity,
stubConnectedHomeAssistant,
} from '../../test-utils';
// A mock renderer for the orchestration tests, which never render templates.
@@ -198,6 +199,7 @@ describe('ConditionsManager', () => {
// loaded for the synchronous renderer (rather than the shared mock).
const templateManager = new TemplateManager();
beforeAll(async () => {
stubConnectedHomeAssistant();
await templateManager.loadRenderer();
});
@@ -6,6 +6,7 @@ import {
createHASS,
createMockTemplateRenderer,
createStateEntity,
stubConnectedHomeAssistant,
} from '../../../test-utils';
import { createEvaluatorContext } from './test-utils';
@@ -131,6 +132,7 @@ describe('numeric state condition', () => {
// This case renders a real value_template, so load the lazily-imported
// engine for the synchronous renderer.
const templateManager = new TemplateManager();
stubConnectedHomeAssistant();
await templateManager.loadRenderer();
const evaluator = createConditionEvaluator(
@@ -2,7 +2,11 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
import { TemplateManager } from '../../../../src/card-controller/templates';
import { createConditionEvaluator } from '../../../../src/condition-trigger/conditions/factory';
import { createHASS, createStateEntity } from '../../../test-utils';
import {
createHASS,
createStateEntity,
stubConnectedHomeAssistant,
} from '../../../test-utils';
import { createEvaluatorContext } from './test-utils';
// @vitest-environment jsdom
@@ -340,6 +344,7 @@ describe('state condition', () => {
// This case renders a real templated `for`, so load the lazily-imported
// engine for the synchronous renderer.
const templateManager = new TemplateManager();
stubConnectedHomeAssistant();
await templateManager.loadRenderer();
const evaluator = createConditionEvaluator(
@@ -2,13 +2,18 @@ import { beforeAll, describe, expect, it } from 'vitest';
import { TemplateManager } from '../../../../src/card-controller/templates';
import { createConditionEvaluator } from '../../../../src/condition-trigger/conditions/factory';
import { createHASS, createStateEntity } from '../../../test-utils';
import {
createHASS,
createStateEntity,
stubConnectedHomeAssistant,
} from '../../../test-utils';
import { createEvaluatorContext } from './test-utils';
// @vitest-environment jsdom
describe('template condition', () => {
const templateManager = new TemplateManager();
beforeAll(async () => {
stubConnectedHomeAssistant();
await templateManager.loadRenderer();
});