Isn’t the article about how to best deal with the UI for letting the user indicate that the system should decide? Which covers your case.
But still, the article continues to ignore that setting, doesn’t it?
The light/dark theme toggle is for a small fraction of the people who genuinely care about controlling the theme to be "right for them" and not just whatever.