fix: Update components and styles to work with >= HA 2026.2 (#2333)

Caution: Requires HA >= `2026.2`

- Closes #2329
- Closes #2332
This commit is contained in:
Dermot Duffy
2026-02-07 20:32:05 -08:00
committed by GitHub
parent 6eb0a87ca8
commit 49073fee48
17 changed files with 827 additions and 62 deletions
+4 -1
View File
@@ -1,3 +1,4 @@
import { format } from 'date-fns';
import { beforeEach, describe, expect, it, vi } from 'vitest';
import { mock } from 'vitest-mock-extended';
import { CameraManagerEngine } from '../../../src/camera-manager/engine';
@@ -514,7 +515,9 @@ describe('FrigateCamera', () => {
);
expect(camera.getEndpoints({ view: 'media', media })?.ui).toEqual({
endpoint: 'http://frigate/recording/front_door/2023-01-01/10',
endpoint:
'http://frigate/recording/front_door/' +
format(media.getStartTime(), 'yyyy-MM-dd/HH'),
});
});