Clear template result when template changes (#17849)

This commit is contained in:
Bram Kragten 2023-09-08 02:48:57 +02:00 committed by GitHub
parent 850699ea70
commit 4a6539d75b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -340,6 +340,7 @@ class HaPanelDevTemplate extends LitElement {
private async _subscribeTemplate() { private async _subscribeTemplate() {
this._rendering = true; this._rendering = true;
await this._unsubscribeTemplate(); await this._unsubscribeTemplate();
this._templateResult = undefined;
try { try {
this._unsubRenderTemplate = subscribeRenderTemplate( this._unsubRenderTemplate = subscribeRenderTemplate(
this.hass.connection, this.hass.connection,