Expose lock to HomeKit with PIN code?

Hi, how can I expose a lock I have in Home Assistant, to HomeKit, so that it also asks for a PIN when I try to unlock it from the Apple Home app?