mirror of
https://github.com/home-assistant/frontend.git
synced 2025-04-25 22:07:20 +00:00
Fix strict error handling in developer tools templates (#12352)
This commit is contained in:
parent
0685fdf7c6
commit
f648317206
@ -20,6 +20,7 @@ export const subscribeRenderTemplate = (
|
|||||||
entity_ids?: string | string[];
|
entity_ids?: string | string[];
|
||||||
variables?: Record<string, unknown>;
|
variables?: Record<string, unknown>;
|
||||||
timeout?: number;
|
timeout?: number;
|
||||||
|
strict?: boolean;
|
||||||
}
|
}
|
||||||
): Promise<UnsubscribeFunc> =>
|
): Promise<UnsubscribeFunc> =>
|
||||||
conn.subscribeMessage((msg: RenderTemplateResult) => onChange(msg), {
|
conn.subscribeMessage((msg: RenderTemplateResult) => onChange(msg), {
|
||||||
|
@ -329,6 +329,7 @@ class HaPanelDevTemplate extends LitElement {
|
|||||||
{
|
{
|
||||||
template: this._template,
|
template: this._template,
|
||||||
timeout: 3,
|
timeout: 3,
|
||||||
|
strict: true,
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
await this._unsubRenderTemplate;
|
await this._unsubRenderTemplate;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user