Skip to content

Commit

Permalink
Improved restart message
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardtfn committed Jan 22, 2025
1 parent e6374df commit d7d9fbd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions blueprints/automation/EdwardTFN/auto_update_scheduled.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -869,6 +869,7 @@ action:
- variables:
log_message: >
List of updates:
- `{{ states.update
| selectattr('state', 'eq', 'on')
| rejectattr('entity_id', 'in', input_update_exclusions)
Expand Down Expand Up @@ -1406,7 +1407,7 @@ action:
- condition: '{{ pending_restart_items_count > 0 }}'
- variables:
log_message: >
{{ pending_restart_items_count }} item {{ "s" if pending_restart_items_count > 1 }} pending a restart:
{{ pending_restart_items_count }} item{{ "s" if pending_restart_items_count > 1 }} pending a restart:
- `{{ pending_restart_items | join("`\n- `") }}`
- *logbook_update
Expand Down Expand Up @@ -1458,7 +1459,7 @@ action:
else:
- variables:
log_message: >
Restart was asked by admin.
The system is set to restart automatically when an update requires it.
Restarting Home Assistant ({{ input_restart_type }})
- *logbook_update
Expand Down

0 comments on commit d7d9fbd

Please sign in to comment.