Skip to content

Commit

Permalink
Show currently selected language in profile settings. Resolves #1797
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasloven committed Oct 17, 2018
1 parent f146a1d commit 2df7f3f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/panels/profile/ha-pick-language-row.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

0 comments on commit 2df7f3f

Please sign in to comment.