Certainly a first step.Ken Munro, from security firm Pen Test Partners, has highlighted many vulnerabilities in internet-connected devices. He told the BBC that the legislation was "a big step in the right direction".
"However. it's important that government acknowledges that this is just the first step. These laws will need continual improvement to address more complex security issues in smart devices," he said.
It will be interesting to see where and when the first fine lands.
And on what type of device.

Huge fines and a ban on default passwords in new UK law
New rules are introduced to make internet-connected home devices less likely to be hacked.

Watch out if you have one of these!