Add Show logs URL to integration errors notification (#71142)

This commit is contained in:
Kuba Wolanin 2022-05-02 01:14:30 +02:00 committed by GitHub
parent 26c6328b1f
commit d8ee9c1922
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)."