Script broke after Core 7.4 update

Hey there, this script stopped working after the most recent update. The error logs showed this message, when the script initially tried to decrease brightness, starting last night:

error: unsupported operand type(s) for +=: ‘nonetype’ and ‘int’ home assistant

So I deleted and recreated the script, having found similar issues fixed in the same way since updating to major release Core 7, but now it just doesn’t execute - no errors, it runs the first action, then does nothing.

sequence:
  - type: turn_on
    device_id: 1889e75b724cf08a32723b7fa7a299e4
    entity_id: light.master_bedroom_light_2
    domain: light
    brightness_pct: 30
  - wait_template: '00:05:00'
  - device_id:  1889e75b724cf08a32723b7fa7a299e4
    domain: light
    entity_id: light.master_bedroom_light_2
    type: brightness_decrease
  - wait_template: '00:05:00'
  - device_id: 1889e75b724cf08a32723b7fa7a299e4
    domain: light
    entity_id: light.master_bedroom_light_2
    type: brightness_decrease
  - wait_template: '00:05:00'
  - type: turn_off
    device_id: 1889e75b724cf08a32723b7fa7a299e4
    entity_id: light.master_bedroom_light_2
    domain: light
mode: single
alias: Bedtime Lights

Again, the only changes I’ve made were the Core 7.4 update. Any help is much appreciated!

Wtf is 7.4 a version of?

1 Like

Oh so you mean 2021.7.4. Why didn’t you say…

1 Like

It seemed like saying 7.4 was sufficient, since there are no other updates right now in that number range for home assistant. Do you have any insight into the issue I’m having?

wait_template expects a template.
You probably want delay ?

Maybe so - I’ll try it. Thanks!