mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-24 17:57:14 +00:00
Fix alert for multiple integrations (#19410)
This commit is contained in:
parent
d3e378ff3e
commit
dcb7f028d8
@ -13,9 +13,11 @@ layout: default
|
||||
{% if page.collection == "integrations" %}
|
||||
{% assign active_alert = "" %}
|
||||
{% for alert in site.data.alerts_data %}
|
||||
{% if alert.integrations and alert.integrations[0].package == page.ha_domain %}
|
||||
{% assign active_alert = alert.alert_url %}
|
||||
{% endif %}
|
||||
{% for integration in alert.integrations %}
|
||||
{% if integration.package == page.ha_domain %}
|
||||
{% assign active_alert = alert.alert_url %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
{% if active_alert != "" %}
|
||||
<div class="integration-alert">
|
||||
|
Loading…
x
Reference in New Issue
Block a user