Add link to documentation for persons (#7205)

Co-authored-by: Zack Barett <zackbarett@hey.com>
This commit is contained in:
alex6480 2020-10-10 23:19:59 +02:00 committed by GitHub
parent 26b476ab3c
commit c220228566
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 1 deletions

View File

@ -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")}</span
>
<span slot="introduction">
${hass.localize("ui.panel.config.person.introduction")}
<p>
${hass.localize("ui.panel.config.person.introduction")}
</p>
${this._configItems.length > 0
? html`
<p>
@ -84,7 +87,22 @@ class HaConfigPerson extends LitElement {
</p>
`
: ""}
<a
href=${documentationUrl(
this.hass,
"/integrations/person/"
)}
target="_blank"
rel="noreferrer"
>
${this.hass.localize(
"ui.panel.config.person.learn_more"
)}
</a>
</span>
<ha-card class="storage">
${this._storageItems.map((entry) => {
return html`

View File

@ -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",