It's better than nothing sitting between you and knowing your cellar is flooding, and I could think of worse solutions than a device with a built-in UPS that's capable of powering a sensor.
B-hyve has them. They talk to a hub over low power Bluetooth. The hub connects to my VPC-siloed WiFi AP on its own subnet with no routes to anything else in the house. But I still get phone alerts because it connects to its cloud service.
A leak sensor is the simplest home automation sensor possible. Its literally just a bare wire connected to ground, another connecting to a digital IO. You put the two bare wires on the floor a little distance apart and write some code to fire off an alert if the IO ever reports being connected, because if it is that means something conductive is sitting between the two wires.
It's a risk, not a guarantee, but there's nothing about macbooks that make them more susceptible to it than any other laptop with a li-ion battery. The batteries age. If they're in a machine that runs hot they age a bit faster (and my 2020 Intel MBP runs hot and is plugged in near 24/7), if they're charged to 100% all the time they age a bit faster (but battery management software like Apple has had for years nearly eliminates this risk factor).
There was, however, a batch of macbooks in 2019 that got recalled for a defect that increased the chance significantly, and perhaps that's what the parent poster has in mind.
I was referencing my own experience with 2010-2016 Intel Airs and Pros ending up in the Hazardous Materials bin with bloated batteries, but good to know my current M1 Max will be up to the task whenever I can afford to upgrade.
What? What macbooks is this? My mac book air has been plugged in most of the time since 2013... I've replaced the battery once I think, but only because the battery life had decreased to 10 minutes.
my 2017 macbook pro got pretty bad spicy-pillowitis from being plugged in all the time. It got so bad that it wouldn’t sit flat on the desk, and I thought the trackpad was broken, but it was actually just unable to depress since it was right above the battery.
I just got rid of a 2013 MacBook Air earlier this year because I discovered two of the battery pockets inflated. But I never did a battery replacement, which I probably should have when I stopped using it as a laptop.