mirror of
https://github.com/home-assistant/core.git
synced 2025-08-01 17:48:26 +00:00
Hide configuration URL when Uptime Kuma is installed locally (#149781)
This commit is contained in:
parent
61ca42e923
commit
4b5fe424ed
@ -162,7 +162,11 @@ class UptimeKumaSensorEntity(
|
||||
name=coordinator.data[monitor].monitor_name,
|
||||
identifiers={(DOMAIN, f"{coordinator.config_entry.entry_id}_{monitor!s}")},
|
||||
manufacturer="Uptime Kuma",
|
||||
configuration_url=coordinator.config_entry.data[CONF_URL],
|
||||
configuration_url=(
|
||||
None
|
||||
if "127.0.0.1" in (url := coordinator.config_entry.data[CONF_URL])
|
||||
else url
|
||||
),
|
||||
sw_version=coordinator.api.version.version,
|
||||
)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user