The proposed legislation would apply to very connected devices including toys and household appliances such as smart fridges.