Skip to content

Commit

Permalink
Fix latest_entry_xxx to allow filter entires by scheduler string
Browse files Browse the repository at this point in the history
This change Fix latest_entry_today and latest_entry_day_before to allow filter entires that contain scheduler string as part of scheduler_name.. 
Previous implementation is not right with the documentation of Heating Schedule Adjustments, because the scheduler must fully equal to 'Friendly Name' of scheduler selected.
  • Loading branch information
horttorrell32 authored Jan 12, 2025
1 parent 9742c19 commit 05d80fc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions blueprints/automation/panhans/advanced_heating_control.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2494,14 +2494,14 @@ variables:
| list %}
{% set selected_entries_days_and_schedule = plan | rejectattr('days','==',Undefined) | selectattr('days','search',current_day)
| rejectattr('scheduler','==',Undefined) | selectattr('scheduler','in',[scheduler_name])
| rejectattr('scheduler','==',Undefined) | selectattr('scheduler','in',scheduler_name)
| list %}
{% set selected_entries_days = plan | rejectattr('days','==',Undefined) | selectattr('days','search',current_day)
| selectattr('scheduler','in',[Undefined])
| list %}
{% set selected_entries_schedule = plan | rejectattr('scheduler','==',Undefined) | selectattr('scheduler','in',[scheduler_name])
{% set selected_entries_schedule = plan | rejectattr('scheduler','==',Undefined) | selectattr('scheduler','in',scheduler_name)
| selectattr('days','in',[Undefined])
| list %}
Expand Down Expand Up @@ -2533,14 +2533,14 @@ variables:
| list %}
{% set selected_entries_days_and_schedule = plan | rejectattr('days','==',Undefined) | selectattr('days','search',current_day)
| rejectattr('scheduler','==',Undefined) | selectattr('scheduler','in',[scheduler_name])
| rejectattr('scheduler','==',Undefined) | selectattr('scheduler','in',scheduler_name)
| list %}
{% set selected_entries_days = plan | rejectattr('days','==',Undefined) | selectattr('days','search',current_day)
| selectattr('scheduler','in',[Undefined])
| list %}
{% set selected_entries_schedule = plan | rejectattr('scheduler','==',Undefined) | selectattr('scheduler','in',[scheduler_name])
{% set selected_entries_schedule = plan | rejectattr('scheduler','==',Undefined) | selectattr('scheduler','in',scheduler_name)
| selectattr('days','in',[Undefined])
| list %}
Expand Down

0 comments on commit 05d80fc

Please sign in to comment.