One of the supporting characters is a Pietist, and gets into trouble as such (among other story threads).
“Anno 1790.”
Is that a TV show? But is it in Swedish? It sounds like something I’d like, where do you watch it?