Skip to content

Commit

Permalink
Don't tell to restart if not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeeus committed Feb 9, 2020
1 parent a373f50 commit 6c9211e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
10 changes: 1 addition & 9 deletions src/components/repositorybanner/IntegrationFirstInstall.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,16 @@ import { HacsRepositoryBanner } from "./HacsRepositoryBanner";
@customElement("hacs-repository-banner-integration-first-install")
export class RepositoryBannerIntegrationFirstInstall extends HacsRepositoryBanner {
protected render(): TemplateResult | void {
const title = this.hacs.localize("repository_banner.restart_pending");
const title = this.hacs.localize("repository_banner.config_flow_title");

return html`
<ha-card class="info" .header="${title}">
<div class="card-content">
${this.hacs.localize("repository_banner.restart")}
</br></br>
${this.hacs.localize("repository_banner.restart")}
${this.hacs.localize("repository_banner.config_flow")}
</br>
${this.hacs.localize("repository_banner.no_restart_required")} 🎉
</div>
<div class="card-actions">
<hacs-button-restart-home-assistant
.hacs=${this.hacs}
.hass=${this.hass}
.route=${this.route}
></hacs-button-restart-home-assistant>
<hacs-button-goto-integrations
.hacs=${this.hacs}
.route=${this.route}
Expand Down
1 change: 1 addition & 0 deletions src/localize/languages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
"not_loaded": "Not loaded",
"plugin_not_loaded": "This plugin is not added to your Lovelace resources.",
"restart_pending": "Restart pending",
"config_flow_title": "UI Configuration supported",
"restart": "You need to restart Home Assistant."
},
"settings": {
Expand Down

0 comments on commit 6c9211e

Please sign in to comment.