Doorbell won’t charge when hard wired

I’m having this same issue. Just curious if you were able to resolve it and how you did resolve it.