Using tap action to lock and unlock a door, now unlock doesn't work anymore

Hi all,

Have a slept and missed a change somewhere?

For a long time, I’ve used a button-card for for front door, and I’ve used an tap-action for lock/unlock for years. Some time back, none of my two locks (two different HA sites) respond to the unlock, only to lock.

If state is unlocked, I can lock.
If state is locked, I cannot unlock… no errors, nothing…

This is the code I’ve been using;

            tap_action:
              action: call-service
              service: |
                [[[
                  return (entity.state === 'locked') ? 'lock.unlock' : 'lock.lock';
                ]]]
              service_data:
                entity_id: lock.id_lock_150

Is there some recent change that I need to adjust to?