From c22022856616c10efa986dfc6cfe97854c1195e1 Mon Sep 17 00:00:00 2001 From: alex6480 Date: Sat, 10 Oct 2020 23:19:59 +0200 Subject: [PATCH] Add link to documentation for persons (#7205) Co-authored-by: Zack Barett --- src/panels/config/person/ha-config-person.ts | 20 +++++++++++++++++++- src/translations/en.json | 1 + 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/src/panels/config/person/ha-config-person.ts b/src/panels/config/person/ha-config-person.ts index 080eeee7aa..467b04673a 100644 --- a/src/panels/config/person/ha-config-person.ts +++ b/src/panels/config/person/ha-config-person.ts @@ -30,6 +30,7 @@ import { import "../../../layouts/hass-loading-screen"; import "../../../layouts/hass-tabs-subpage"; import { HomeAssistant, Route } from "../../../types"; +import { documentationUrl } from "../../../util/documentation-url"; import "../ha-config-section"; import { configSections } from "../ha-panel-config"; import { @@ -74,7 +75,9 @@ class HaConfigPerson extends LitElement { >${hass.localize("ui.panel.config.person.caption")} - ${hass.localize("ui.panel.config.person.introduction")} +

+ ${hass.localize("ui.panel.config.person.introduction")} +

${this._configItems.length > 0 ? html`

@@ -84,7 +87,22 @@ class HaConfigPerson extends LitElement {

` : ""} + + + ${this.hass.localize( + "ui.panel.config.person.learn_more" + )} +
+ + ${this._storageItems.map((entry) => { return html` diff --git a/src/translations/en.json b/src/translations/en.json index c86c81ea2e..713ce22029 100755 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -1692,6 +1692,7 @@ "description": "Manage the people that Home Assistant tracks", "introduction": "Here you can define each person of interest in Home Assistant.", "note_about_persons_configured_in_yaml": "Note: people configured via configuration.yaml cannot be edited via the UI.", + "learn_more": "Learn more about people", "no_persons_created_yet": "Looks like you have not created any people yet.", "create_person": "Create Person", "add_person": "Add Person",