@fubaroque Yep. Some modern alarms have temperature compensation to try to avoid this. OTOH, modern alarms shouldn't have replaceable batteries.
@fubaroque The problem is the actual smoke sensors only last so long. With replaceable batteries you can be blissfully replacing the battery and pressing the test button on an alarm which won't actually work when it's really needed.
The law's a bit muddled but alarms with replaceable batteries no longer suffice in Scotland in places where alarms are required, which includes basically all residential property, IIRC.
(Unfortunately this law was scheduled to come into force in early 2020 but people had other things on their mind at the time. It was delayed by a year but still didn't get much publicity.)