!! even the hard-wired ones are supposed to be replaced after 10 years, and new hard-wired ones will automatically brick themselves after the 10 years is up !!
For anyone reading this wondering how that's safe, I believe they make noise regularly once they reach this state, to encourage you to replace them, rather than just silently failing to operate!