Skip to content

Commit

Permalink
PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
MindFreeze committed Oct 29, 2024
1 parent af7b00e commit 70b70ff
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/panels/config/network/ha-config-url-form.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,9 @@ class ConfigUrlForm extends LitElement {
<ha-textfield
name="internal_url"
type="url"
placeholder="http://<some IP address>:8123"
placeholder=${this.hass.localize(
"ui.panel.config.url.internal_url_placeholder"
)}
.value=${this._unmaskedInternalUrl ||
(this._showCustomInternalUrl && canEdit)
? internalUrl
Expand Down
3 changes: 2 additions & 1 deletion src/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -2401,7 +2401,8 @@
"internal_url_automatic": "Automatic",
"internal_url_https_error_title": "Invalid local network URL",
"internal_url_https_error_description": "You have configured an HTTPS certificate in Home Assistant. This means that your internal URL needs to be set to a domain covered by the certficate.",
"internal_url_automatic_description": "Use the configured network settings"
"internal_url_automatic_description": "Use the configured network settings",
"internal_url_placeholder": "http://<some IP address>:8123"
},
"hardware": {
"caption": "Hardware",
Expand Down
2 changes: 1 addition & 1 deletion src/util/url.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export function obfuscateUrl(url: string) {
if (url.includes(".ui.nabu.casa")) {
if (url.endsWith(".ui.nabu.casa")) {
return "https://•••••••••••••••••.ui.nabu.casa";
}
// hide any words that look like they might be a hostname or IP address
Expand Down

0 comments on commit 70b70ff

Please sign in to comment.