Doorbell won’t charge when hard wired

Yes , replaced the low voltage door bell with this basic Ring Video Doorbell. Attaching the two wires from the doorbell transformer.