Ok, it's basically illegal then, and also enforced. So guess that "just disconnect the modem" advice is wrong.
Just reconnect it before the inspection?