Far be it for me to question, I’m sure there were good reasons, but the removal of triggers_update seems like a backwards step.
I use !include with a dictionary of variables (courtesy of lovelace_gen)1 and it looks like v7 of button-card does not update with this line of JS despite the release notes saying it updates on JS variables.
const occupancy = 'binary_sensor.occupancy_rooms_{{ room }}_occupied';
whereas this did update
triggers_update:
- binary_sensor.occupancy_rooms_{{ room }}_occupied
I have also tried this
variables:
occupancy: binary_sensor.occupancy_rooms_{{ room }}_occupied
Which also didn’t appear to work.
I have only just upgraded to v7 and done some rudimentary testing so I would love to be told I am wrong!
However if I am right and the only alternative is to use update_timer: 1s that is fine. Kind of. It does seem like it would add an unnecessary albeit small(?) overhead though.
1 I have been doing this for years, possibly since before button templates were a thing so I have a lot in my config. Perhaps I will be told that I should change to templates but it would be a huge amount of work.