Show currently selected language in profile settings. Resolves #1797 (#1800)

This commit is contained in:
Thomas Lovén 2018-10-18 09:55:28 +02:00 committed by Paulus Schoutsen
parent 5462a71f52
commit 9d13925280

View File

@ -78,6 +78,13 @@ class HaPickLanguageRow extends LocalizeMixin(EventsMixin(PolymerElement)) {
this.fire("hass-language-select", { language: newVal });
}
}
ready() {
super.ready();
if (this.hass && this.hass.language) {
this.setLanguageSelection(this.hass.language);
}
}
}
customElements.define("ha-pick-language-row", HaPickLanguageRow);