diff --git a/src/panels/profile/ha-panel-profile.js b/src/panels/profile/ha-panel-profile.js index 85101e4e48..1dbd8d0d39 100644 --- a/src/panels/profile/ha-panel-profile.js +++ b/src/panels/profile/ha-panel-profile.js @@ -53,7 +53,9 @@ class HaPanelProfile extends EventsMixin(PolymerElement) { >Log out - + `; @@ -70,6 +72,10 @@ class HaPanelProfile extends EventsMixin(PolymerElement) { _handleLogOut() { this.fire('hass-logout'); } + + _canChangePassword(user) { + return user.credentials.some(cred => cred.auth_provider_type === 'homeassistant'); + } } customElements.define('ha-panel-profile', HaPanelProfile);