mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 09:47:13 +00:00
Add Show logs URL to integration errors notification (#71142)
This commit is contained in:
parent
26c6328b1f
commit
d8ee9c1922
@ -951,8 +951,9 @@ def async_notify_setup_error(
|
|||||||
message = "The following integrations and platforms could not be set up:\n\n"
|
message = "The following integrations and platforms could not be set up:\n\n"
|
||||||
|
|
||||||
for name, link in errors.items():
|
for name, link in errors.items():
|
||||||
|
show_logs = f"[Show logs](/config/logs?filter={name})"
|
||||||
part = f"[{name}]({link})" if link else name
|
part = f"[{name}]({link})" if link else name
|
||||||
message += f" - {part}\n"
|
message += f" - {part} ({show_logs})\n"
|
||||||
|
|
||||||
message += "\nPlease check your config and [logs](/config/logs)."
|
message += "\nPlease check your config and [logs](/config/logs)."
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user