Fix rendering config entry titles (#13060)

* Fix rendering config entry titles

* Fix location height

* Only fetch installation type when user not created yet
This commit is contained in:
Paulus Schoutsen 2022-07-01 11:52:56 -07:00 committed by GitHub
parent 6ca3f06ea0
commit 1cc02415d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 2 deletions

View File

@ -124,7 +124,6 @@ class HaOnboarding extends litLocalizeLiteMixin(HassElement) {
protected firstUpdated(changedProps: PropertyValues) {
super.firstUpdated(changedProps);
this._fetchOnboardingSteps();
this._fetchInstallationType();
import("./onboarding-integrations");
import("./onboarding-core-config");
registerServiceWorker(this, false);
@ -215,6 +214,9 @@ class HaOnboarding extends litLocalizeLiteMixin(HassElement) {
});
history.replaceState(null, "", location.pathname);
await this._connectHass(auth);
} else {
// User creating screen needs to know the installation type.
this._fetchInstallationType();
}
this._steps = steps;

View File

@ -378,6 +378,10 @@ class OnboardingCoreConfig extends LitElement {
color: var(--secondary-text-color);
}
ha-locations-editor {
height: 200px;
}
.flex {
flex: 1;
}

View File

@ -81,7 +81,10 @@ class OnboardingIntegrations extends LitElement {
// Render discovered and existing entries together sorted by localized title.
const entries: Array<[string, TemplateResult]> = this._entries.map(
(entry) => {
const title = domainToName(this.hass.localize, entry.domain);
const title =
entry.title ||
domainToName(this.hass.localize, entry.domain) ||
entry.domain;
return [
title,
html`