From e01e3e84f0ce522e764e9b8275b39345d4f4d295 Mon Sep 17 00:00:00 2001 From: Austen Date: Thu, 2 May 2024 18:01:15 -0500 Subject: [PATCH] Make `allow` attribute configurable in iframe dashboards --- src/panels/lovelace/strategies/iframe/iframe-view-strategy.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/panels/lovelace/strategies/iframe/iframe-view-strategy.ts b/src/panels/lovelace/strategies/iframe/iframe-view-strategy.ts index 043188b7a5c8..958734f383b0 100644 --- a/src/panels/lovelace/strategies/iframe/iframe-view-strategy.ts +++ b/src/panels/lovelace/strategies/iframe/iframe-view-strategy.ts @@ -7,6 +7,7 @@ export type IframeViewStrategyConfig = { type: "iframe"; url: string; title?: string; + allow?: string; }; @customElement("iframe-view-strategy") @@ -21,6 +22,7 @@ export class IframeViewStrategy extends ReactiveElement { { type: "iframe", url: config.url, + allow: config.allow, } as IframeCardConfig, ], };