Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion src/panels/config/person/ha-config-person.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import { showConfirmationDialog } from "../../../dialogs/generic/show-dialog-box
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 {
Expand Down Expand Up @@ -71,7 +72,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>
Expand All @@ -81,7 +84,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`
Expand Down
1 change: 1 addition & 0 deletions src/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1638,6 +1638,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",
Expand Down