fix: Rendering not correctly forced when tab changed in certain circumstances (#1817)

- Closes #1811
- Closes #1769
This commit is contained in:
Dermot Duffy
2025-01-09 20:21:26 -08:00
committed by GitHub
parent c3dc4803ad
commit 7657bdf22c
8 changed files with 53 additions and 11 deletions
+2 -2
View File
@@ -1290,7 +1290,7 @@ describe('CameraManager', async () => {
});
});
it('should reset', async () => {
it('should destroy', async () => {
const api = createCardAPI();
const engine = mock<CameraManagerEngine>();
vi.mocked(api.getHASSManager().getHASS).mockReturnValue(createHASS());
@@ -1300,7 +1300,7 @@ describe('CameraManager', async () => {
expect(manager.getStore().getCameraCount()).toBe(1);
await manager.reset();
await manager.destroy();
expect(manager.getStore().getCameraCount()).toBe(0);
});