Fix strict error handling in developer tools templates (#12352)

This commit is contained in:
Franck Nijhof
2022-04-19 14:28:07 +02:00
committed by GitHub
parent 0685fdf7c6
commit f648317206
2 changed files with 2 additions and 0 deletions

View File

@@ -20,6 +20,7 @@ export const subscribeRenderTemplate = (
entity_ids?: string | string[];
variables?: Record<string, unknown>;
timeout?: number;
strict?: boolean;
}
): Promise<UnsubscribeFunc> =>
conn.subscribeMessage((msg: RenderTemplateResult) => onChange(msg), {

View File

@@ -329,6 +329,7 @@ class HaPanelDevTemplate extends LitElement {
{
template: this._template,
timeout: 3,
strict: true,
}
);
await this._unsubRenderTemplate;