mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-21 08:16:36 +00:00
Dismiss configuration check result on leaving page (#17466)
This commit is contained in:
parent
e9e31d51ec
commit
c2123a0a90
@ -36,6 +36,12 @@ export class DeveloperYamlConfig extends LitElement {
|
||||
|
||||
private _validateLog = "";
|
||||
|
||||
public disconnectedCallback() {
|
||||
super.disconnectedCallback();
|
||||
this._isValid = null;
|
||||
this._validateLog = "";
|
||||
}
|
||||
|
||||
protected updated(changedProperties) {
|
||||
const oldHass = changedProperties.get("hass");
|
||||
if (
|
||||
@ -172,6 +178,9 @@ export class DeveloperYamlConfig extends LitElement {
|
||||
|
||||
const configCheck = await checkCoreConfig(this.hass);
|
||||
this._validating = false;
|
||||
if (!this.isConnected) {
|
||||
return;
|
||||
}
|
||||
this._isValid = configCheck.result === "valid";
|
||||
|
||||
if (configCheck.errors) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user