From 70b70ff46890b7cef79e632867f4b7ccf7f0a83e Mon Sep 17 00:00:00 2001 From: Petar Petrov Date: Tue, 29 Oct 2024 14:54:28 +0100 Subject: [PATCH] PR comments --- src/panels/config/network/ha-config-url-form.ts | 4 +++- src/translations/en.json | 3 ++- src/util/url.ts | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/panels/config/network/ha-config-url-form.ts b/src/panels/config/network/ha-config-url-form.ts index bfc0b9b3bdc6..934869b79995 100644 --- a/src/panels/config/network/ha-config-url-form.ts +++ b/src/panels/config/network/ha-config-url-form.ts @@ -237,7 +237,9 @@ class ConfigUrlForm extends LitElement { :8123" }, "hardware": { "caption": "Hardware", diff --git a/src/util/url.ts b/src/util/url.ts index 674e34814074..ed3da5bb5926 100644 --- a/src/util/url.ts +++ b/src/util/url.ts @@ -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