From 38cf774a0dff4d964f36aa0e83744fd66eaee334 Mon Sep 17 00:00:00 2001 From: Bram Kragten Date: Mon, 29 May 2023 20:38:21 +0200 Subject: [PATCH] Use ESM version of hls.js (#16655) --- src/components/ha-hls-player.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/ha-hls-player.ts b/src/components/ha-hls-player.ts index e20b0ce694..3943abb615 100644 --- a/src/components/ha-hls-player.ts +++ b/src/components/ha-hls-player.ts @@ -109,8 +109,7 @@ class HaHLSPlayer extends LitElement { private async _startHls(): Promise { const masterPlaylistPromise = fetch(this.url); - const Hls: typeof HlsType = (await import("hls.js/dist/hls.light.min")) - .default; + const Hls: typeof HlsType = (await import("hls.js/dist/hls.light")).default; if (!this.isConnected) { return;