yaml tidyups and warning removals
This commit is contained in:
@@ -219,11 +219,21 @@ template:
|
||||
unique_id: ha_summary_addons
|
||||
icon: mdi:puzzle
|
||||
state: >-
|
||||
{% set a = states.update | selectattr('entity_id','in', integration_entities('hassio')) | list %}
|
||||
{% set b = states.update | selectattr('attributes.attribution','search','Supervisor') | list %}
|
||||
{{ (a + b) | unique | list
|
||||
| rejectattr('entity_id','search','^update\\.home_assistant_(core|supervisor|operating_system)_update$')
|
||||
| list | length }}
|
||||
{% set hassio_updates = (integration_entities('hassio') | list) %}
|
||||
{% set a = states.update
|
||||
| selectattr('entity_id','in', hassio_updates)
|
||||
| map(attribute='entity_id')
|
||||
| list %}
|
||||
{% set b = states.update
|
||||
| selectattr('attributes.attribution','defined')
|
||||
| selectattr('attributes.attribution','search','Supervisor')
|
||||
| map(attribute='entity_id')
|
||||
| list %}
|
||||
{% set ids = (a + b)
|
||||
| unique
|
||||
| reject('search','^update\\.home_assistant_(core|supervisor|operating_system)_update$')
|
||||
| list %}
|
||||
{{ ids | length }}
|
||||
|
||||
# ---------- HACS updates available (proxy only) ----------
|
||||
- name: HA Summary - hacs updates
|
||||
|
||||
Reference in New Issue
Block a user