If it’s like my Google door lock, it’s battery-powered. It doesn’t matter if the mains power is on or off.
well, make sure the batteries always work.