Entity "lock" with default code

I have an issue with a Shelly 1 that I configured via an helper as a lock.
I set the default code, but when I try to unlock, the code is not requested, neither when I unlock it directly nor when I unlock it with a button by calling the service “lock.unlock”.

image

I can’t figure out what’s wrong. Has anyone else experienced the same issue?

I’ve already tried doing it with custom cards, but I would like the entity itself to have the property of requesting the code, because otherwise, by directly calling the entity it’s still possible to turn on/off without needing to enter the pin.

I came across this discussion earlier, it seems that for the moment there is still no way to do it.