fix: Report and retry media failures for every camera in a grid (#2658)

- Closes: #2637
 - Related: #2099
This commit is contained in:
Dermot Duffy
2026-08-05 21:35:47 -07:00
committed by GitHub
parent 9f88aacefe
commit c137f4c00c
31 changed files with 1719 additions and 1000 deletions
+3 -3
View File
@@ -11,7 +11,7 @@ import {
type MountOptions,
} from '../browser/mounted-card';
import {
createStillCameraHASS,
createCameraHASS,
createStillImageCardConfig,
isLiveMediaShowing,
} from '../browser/test-utils';
@@ -99,7 +99,7 @@ class BuildMountedCardFactory extends MountedCardFactory {
* rather than from `src/`.
*/
const mountBuiltCard = async (
hass: FakeHASS = createStillCameraHASS(),
hass: FakeHASS = createCameraHASS(),
): Promise<MountedCard> =>
await BuildMountedCardFactory.createFromBuild(
`/${PUBLIC_ENTRY}?hacstag=${HACSTAG}`,
@@ -243,7 +243,7 @@ describe('the built card', () => {
// Clear resource timings to only measure the impact of mounting the card.
performance.clearResourceTimings();
const mounted = await mountBuiltCard(createStillCameraHASS({ language: 'de' }));
const mounted = await mountBuiltCard(createCameraHASS({ language: 'de' }));
await mounted.events.waitForFirst('advanced-camera-card:media:loaded');
expect(getLanguageChunks()).toEqual([expect.stringMatching(/^lang-de-/)]);