Didn't the big German auto manufacturers literally develop the hacks to bypass diesel emissions inspections? I'm not sure I'd hold anyone up in a pedestal on this score...
They got caught.
Not by any German regulator or agency.
Those have nothing to do with each other: Germany indeed has a company level corruption problem (especially in combination with the conservative party), but pretty low corruption at the citizen level, i.e. where vehicle inspections happen.
Those cars still passed the inspection. Which means they were physically sound. A battery isn't going to shift into an alternate mode where it becomes a spontaneous fire hazard.