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 Paulus Schoutsen
parent 174717dd85
commit 01b096bb09

View File

@ -951,8 +951,9 @@ def async_notify_setup_error(
message = "The following integrations and platforms could not be set up:\n\n"
for name, link in errors.items():
show_logs = f"[Show logs](/config/logs?filter={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)."