I have the Ryobi Version of the 40V string trimmer. If the trimmer has a split and a button on the middle of the shaft it will be compatible with all gas string trimmer attachments.
Mine handles a brush blade, pole saw and the better craftsman string head from my old gas one.
I think I have 3 gas trimmers dead in the shed with various problems. ( I go through one about every 2 years before they have fuel related issues.
I would love to have a battery mower but 2 acres at this current house and 4 at the new one would never work as I would be pushing for days...
https://www.homedepot.com/p/Ryobi-38-in-Battery-Electric-Rear-Engine-Riding-Lawn-Mower-RY48110/300246266
I know that thing is sexy. However I cant justify $2600 on a lawnmower at the moment. I think my wife would run me over with it. :)